clang
3.7.0
|
#include "clang/AST/ASTConsumer.h"
#include "clang/Frontend/PCHContainerOperations.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/FileManager.h"
#include "clang/Basic/LLVM.h"
#include "clang/Driver/Util.h"
#include "clang/Frontend/FrontendAction.h"
#include "clang/Lex/ModuleLoader.h"
#include "clang/Tooling/ArgumentsAdjusters.h"
#include "clang/Tooling/CompilationDatabase.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Option/Option.h"
#include <memory>
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
class | clang::tooling::ToolAction |
Interface to process a clang::CompilerInvocation. More... | |
class | clang::tooling::FrontendActionFactory |
Interface to generate clang::FrontendActions. More... | |
class | clang::tooling::SourceFileCallbacks |
Callbacks called before and after each source file processed by a FrontendAction created by the FrontedActionFactory returned by newFrontendActionFactory . More... | |
class | clang::tooling::ToolInvocation |
Utility to run a FrontendAction in a single clang invocation. More... | |
class | clang::tooling::ClangTool |
Utility to run a FrontendAction over a set of files. More... | |
Namespaces | |
clang | |
clang::driver | |
clang::tooling | |
Typedefs | |
typedef std::vector< std::pair < std::string, std::string > > | clang::tooling::FileContentMappings |
Functions | |
template<typename T > | |
std::unique_ptr < FrontendActionFactory > | clang::tooling::newFrontendActionFactory () |
Returns a new FrontendActionFactory for a given type. More... | |
template<typename FactoryT > | |
std::unique_ptr < FrontendActionFactory > | clang::tooling::newFrontendActionFactory (FactoryT *ConsumerFactory, SourceFileCallbacks *Callbacks=nullptr) |
Returns a new FrontendActionFactory for any type that provides an implementation of newASTConsumer(). 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... | |
bool | clang::tooling::runToolOnCodeWithArgs (clang::FrontendAction *ToolAction, const Twine &Code, const std::vector< std::string > &Args, const Twine &FileName="input.cc", 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::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", std::shared_ptr< PCHContainerOperations > PCHContainerOps=std::make_shared< PCHContainerOperations >()) |
Builds an AST for 'Code' with additional 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... | |
clang::CompilerInvocation * | clang::tooling::newInvocation (clang::DiagnosticsEngine *Diagnostics, const llvm::opt::ArgStringList &CC1Args) |
Creates a CompilerInvocation . More... | |