ΒΆbool runToolOnCode(
std::unique_ptr<FrontendAction> ToolAction,
const llvm::Twine& Code,
const llvm::Twine& FileName = "input.cc",
std::shared_ptr<PCHContainerOperations>
PCHContainerOps = std::make_shared<
clang::PCHContainerOperations>())
bool runToolOnCode(
std::unique_ptr<FrontendAction> ToolAction,
const llvm::Twine& Code,
const llvm::Twine& FileName = "input.cc",
std::shared_ptr<PCHContainerOperations>
PCHContainerOps = std::make_shared<
clang::PCHContainerOperations>())
Description
Runs (and deletes) the tool on 'Code' with the -fsyntax-only flag.
Declared at: clang/include/clang/Tooling/Tooling.h:164
Parameters
- std::unique_ptr<FrontendAction> ToolAction
- The action to run over the code.
- const llvm::Twine& Code
- C++ code.
- const llvm::Twine& FileName = "input.cc"
- The file name which 'Code' will be mapped as.
- std::shared_ptr<PCHContainerOperations> PCHContainerOps = std::make_shared<clang::PCHContainerOperations>()
- The PCHContainerOperations for loading and creating clang modules.
Returns
- True if 'ToolAction' was successfully executed.