summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-11-06 20:12:45 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-11-06 20:12:45 +0000
commit8051db16aa9513333062ab3145f038429f66780f (patch)
tree75eb3a5d3f092126ec8bceb1656390cd9d50c7c1 /lib/CodeGen/CGExpr.cpp
parent298028994ea4dae826422c15139682b82197a35e (diff)
downloadclang-8051db16aa9513333062ab3145f038429f66780f.tar.gz
clang-8051db16aa9513333062ab3145f038429f66780f.tar.bz2
clang-8051db16aa9513333062ab3145f038429f66780f.tar.xz
Introduce ClangTool::buildASTs, and buildASTFromCode.
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions