summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-11-02 22:18:44 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-11-02 22:18:44 +0000
commit870704f6ef47fe8d878e2b6d73c61665e37c91e6 (patch)
tree3058c8cd1888aa7412d7e99a32c0f989c26df213
parenta6b91ac30726cb5f5716e85fe11fed1d3b9d8b8f (diff)
downloadbcm5719-llvm-870704f6ef47fe8d878e2b6d73c61665e37c91e6.tar.gz
bcm5719-llvm-870704f6ef47fe8d878e2b6d73c61665e37c91e6.zip
When code-completing don't disable the preprocessing record if modules are enabled.
llvm-svn: 167325
-rw-r--r--clang/lib/Frontend/ASTUnit.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp
index da3083236be..835f3e4ab9f 100644
--- a/clang/lib/Frontend/ASTUnit.cpp
+++ b/clang/lib/Frontend/ASTUnit.cpp
@@ -2451,8 +2451,9 @@ void ASTUnit::CodeComplete(StringRef File, unsigned Line, unsigned Column,
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);
OpenPOWER on IntegriCloud