forked from OSchip/llvm-project
c689ee76d4
These allow clients to retrieve persistent AST objects (ASTUnits) which can be used in an ad-hoc manner after parsing. To accommodate this change, the code for processing a CompilerInvocation using a FrontendAction has been factored out to FrontendActionFactory, and a new base class, ToolAction, has been introduced, allowing the tool to do arbitrary things with each CompilerInvocation. This change was necessary because ASTUnit does not use the FrontendAction interface directly. This change also causes the FileManager in ClangTool to use shared ownership. This will become necessary because ASTUnit takes shared ownership of FileManager (ClangTool's FileManager is currently unused by ASTUnit; this is a FIXME). As shown in the tests, any client of ToolInvocation will need to be modified to use shared ownership for FileManager. Differential Revision: http://llvm-reviews.chandlerc.com/D2097 llvm-svn: 194164 |
||
---|---|---|
.. | ||
ArgumentsAdjusters.cpp | ||
CMakeLists.txt | ||
CommonOptionsParser.cpp | ||
CompilationDatabase.cpp | ||
FileMatchTrie.cpp | ||
JSONCompilationDatabase.cpp | ||
Makefile | ||
Refactoring.cpp | ||
RefactoringCallbacks.cpp | ||
Tooling.cpp |