ΒΆbool runToolOnCodeWithArgs(
    std::unique_ptr<FrontendAction> ToolAction,
    const llvm::Twine& Code,
    llvm::IntrusiveRefCntPtr<
        llvm::vfs::FileSystem> VFS,
    const std::vector<std::string>& Args,
    const llvm::Twine& FileName = "input.cc",
    const llvm::Twine& ToolName = "clang-tool",
    std::shared_ptr<PCHContainerOperations>
        PCHContainerOps = std::make_shared<
            clang::PCHContainerOperations>())

Declared at: clang/include/clang/Tooling/Tooling.h:195

Parameters

std::unique_ptr<FrontendAction> ToolAction
const llvm::Twine& Code
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS
const std::vector<std::string>& Args
const llvm::Twine& FileName = "input.cc"
const llvm::Twine& ToolName = "clang-tool"
std::shared_ptr<PCHContainerOperations> PCHContainerOps = std::make_shared<clang::PCHContainerOperations>()