|
static clang::driver::Driver * | clang::tooling::newDriver (clang::DiagnosticsEngine *Diagnostics, const char *BinaryName, IntrusiveRefCntPtr< vfs::FileSystem > VFS) |
| Builds a clang driver initialized for running clang tools. More...
|
|
static const llvm::opt::ArgStringList * | clang::tooling::getCC1Arguments (clang::DiagnosticsEngine *Diagnostics, clang::driver::Compilation *Compilation) |
| Retrieves the clang CC1 specific flags out of the compilation's jobs. More...
|
|
clang::CompilerInvocation * | clang::tooling::newInvocation (clang::DiagnosticsEngine *Diagnostics, const llvm::opt::ArgStringList &CC1Args) |
| Creates a CompilerInvocation . More...
|
|
bool | clang::tooling::runToolOnCode (clang::FrontendAction *ToolAction, const Twine &Code, const Twine &FileName="input.cc", std::shared_ptr< PCHContainerOperations > PCHContainerOps=std::make_shared< PCHContainerOperations >()) |
| Runs (and deletes) the tool on 'Code' with the -fsyntax-only flag. More...
|
|
static std::vector< std::string > | clang::tooling::getSyntaxOnlyToolArgs (const Twine &ToolName, const std::vector< std::string > &ExtraArgs, StringRef FileName) |
|
bool | clang::tooling::runToolOnCodeWithArgs (clang::FrontendAction *ToolAction, const Twine &Code, const std::vector< std::string > &Args, const Twine &FileName="input.cc", const Twine &ToolName="clang-tool", std::shared_ptr< PCHContainerOperations > PCHContainerOps=std::make_shared< PCHContainerOperations >(), const FileContentMappings &VirtualMappedFiles=FileContentMappings()) |
| Runs (and deletes) the tool on 'Code' with the -fsyntax-only flag and with additional other flags. More...
|
|
std::string | clang::tooling::getAbsolutePath (StringRef File) |
| Returns the absolute path of File , by prepending it with the current directory if File is not absolute. More...
|
|
void | clang::tooling::addTargetAndModeForProgramName (std::vector< std::string > &CommandLine, StringRef InvokedAs) |
| Changes CommandLine to contain implicit flags that would have been defined had the compiler driver been invoked through the path InvokedAs. More...
|
|
static void | clang::tooling::injectResourceDir (CommandLineArguments &Args, const char *Argv0, void *MainAddr) |
|
std::unique_ptr< ASTUnit > | clang::tooling::buildASTFromCode (const Twine &Code, const Twine &FileName="input.cc", std::shared_ptr< PCHContainerOperations > PCHContainerOps=std::make_shared< PCHContainerOperations >()) |
| Builds an AST for 'Code'. More...
|
|
std::unique_ptr< ASTUnit > | clang::tooling::buildASTFromCodeWithArgs (const Twine &Code, const std::vector< std::string > &Args, const Twine &FileName="input.cc", const Twine &ToolName="clang-tool", std::shared_ptr< PCHContainerOperations > PCHContainerOps=std::make_shared< PCHContainerOperations >(), ArgumentsAdjuster Adjuster=getClangStripDependencyFileAdjuster()) |
| Builds an AST for 'Code' with additional flags. More...
|
|