[cfe-commits] r167325 - /cfe/trunk/lib/Frontend/ASTUnit.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Fri Nov 2 15:18:44 PDT 2012
Author: akirtzidis
Date: Fri Nov 2 17:18:44 2012
New Revision: 167325
URL: http://llvm.org/viewvc/llvm-project?rev=167325&view=rev
Log:
When code-completing don't disable the preprocessing record if modules are enabled.
Modified:
cfe/trunk/lib/Frontend/ASTUnit.cpp
Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=167325&r1=167324&r2=167325&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Fri Nov 2 17:18:44 2012
@@ -2451,8 +2451,9 @@
PreprocessorOpts.PrecompiledPreambleBytes.second = false;
}
- // Disable the preprocessing record
- PreprocessorOpts.DetailedRecord = false;
+ // Disable the preprocessing record if modules are not enabled.
+ if (!Clang->getLangOpts().Modules)
+ PreprocessorOpts.DetailedRecord = false;
OwningPtr<SyntaxOnlyAction> Act;
Act.reset(new SyntaxOnlyAction);
More information about the cfe-commits
mailing list