From: Argyrios Kyrtzidis Date: Fri, 2 Nov 2012 22:18:44 +0000 (+0000) Subject: When code-completing don't disable the preprocessing record if modules are enabled. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e50904f83b1b09bff487185dd823dfc8415cb300;p=clang When code-completing don't disable the preprocessing record if modules are enabled. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167325 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/ASTUnit.cpp b/lib/Frontend/ASTUnit.cpp index da3083236b..835f3e4ab9 100644 --- a/lib/Frontend/ASTUnit.cpp +++ b/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 Act; Act.reset(new SyntaxOnlyAction);