summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/IndexingContext.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-01-17 18:48:07 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-01-17 18:48:07 +0000
commitda6e05476d848422e9505a22921466092abcd415 (patch)
tree3c9fa4379fb7dad80391cd8afd2ec4c5d9e811ab /clang/tools/libclang/IndexingContext.cpp
parent5767f0f1131564cfac89abda0d3d9135e2b7e031 (diff)
downloadbcm5719-llvm-da6e05476d848422e9505a22921466092abcd415.tar.gz
bcm5719-llvm-da6e05476d848422e9505a22921466092abcd415.zip
[libclang] Make sure Preprocessor is set in ASTUnit during indexing.
llvm-svn: 148319
Diffstat (limited to 'clang/tools/libclang/IndexingContext.cpp')
-rw-r--r--clang/tools/libclang/IndexingContext.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/tools/libclang/IndexingContext.cpp b/clang/tools/libclang/IndexingContext.cpp
index befdce90459..1c58d23f54c 100644
--- a/clang/tools/libclang/IndexingContext.cpp
+++ b/clang/tools/libclang/IndexingContext.cpp
@@ -208,6 +208,10 @@ void IndexingContext::setASTContext(ASTContext &ctx) {
static_cast<ASTUnit*>(CXTU->TUData)->setASTContext(&ctx);
}
+void IndexingContext::setPreprocessor(Preprocessor &PP) {
+ static_cast<ASTUnit*>(CXTU->TUData)->setPreprocessor(&PP);
+}
+
bool IndexingContext::shouldAbort() {
if (!CB.abortQuery)
return false;
OpenPOWER on IntegriCloud