aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/Indexing.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
commit7fe90f3bfa6bd7f779ecfd4ba201a296a3a1c8cb (patch)
treed6071f63e1d34459d1cec753e9c344d73433a08a /tools/libclang/Indexing.cpp
parent4c86fdb84ff016ee708e71f563ffe2a1c1b96b26 (diff)
[libclang] Make sure Preprocessor is set in ASTUnit during indexing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/Indexing.cpp')
-rw-r--r--tools/libclang/Indexing.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libclang/Indexing.cpp b/tools/libclang/Indexing.cpp
index 630c55bb33..6bffc6b97a 100644
--- a/tools/libclang/Indexing.cpp
+++ b/tools/libclang/Indexing.cpp
@@ -176,6 +176,7 @@ public:
IndexCtx.setASTContext(CI.getASTContext());
Preprocessor &PP = CI.getPreprocessor();
PP.addPPCallbacks(new IndexPPCallbacks(PP, IndexCtx));
+ IndexCtx.setPreprocessor(PP);
return new IndexingConsumer(IndexCtx);
}