projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e445c72
)
Disable the preprocessing record when indexing a source file
author
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Wed, 10 Oct 2012 02:12:50 +0000
(
02:12
+0000)
committer
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Wed, 10 Oct 2012 02:12:50 +0000
(
02:12
+0000)
and modules are not enabled.
llvm-svn: 165593
clang/tools/libclang/Indexing.cpp
patch
|
blob
|
history
diff --git
a/clang/tools/libclang/Indexing.cpp
b/clang/tools/libclang/Indexing.cpp
index
d2b0ab3
..
887b5fc
100644
(file)
--- a/
clang/tools/libclang/Indexing.cpp
+++ b/
clang/tools/libclang/Indexing.cpp
@@
-398,6
+398,9
@@
static void clang_indexSourceFile_Impl(void *UserData) {
PPOpts.DetailedRecord = true;
}
+ if (!requestedToGetTU && !CInvok->getLangOpts()->Modules)
+ PPOpts.DetailedRecord = false;
+
DiagnosticErrorTrap DiagTrap(*Diags);
bool Success = ASTUnit::LoadFromCompilerInvocationAction(CInvok.getPtr(), Diags,
IndexAction.get(),