[cfe-commits] r165593 - /cfe/trunk/tools/libclang/Indexing.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Tue Oct 9 19:12:51 PDT 2012


Author: akirtzidis
Date: Tue Oct  9 21:12:50 2012
New Revision: 165593

URL: http://llvm.org/viewvc/llvm-project?rev=165593&view=rev
Log:
Disable the preprocessing record when indexing a source file
and modules are not enabled.

Modified:
    cfe/trunk/tools/libclang/Indexing.cpp

Modified: cfe/trunk/tools/libclang/Indexing.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/Indexing.cpp?rev=165593&r1=165592&r2=165593&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/Indexing.cpp (original)
+++ cfe/trunk/tools/libclang/Indexing.cpp Tue Oct  9 21:12:50 2012
@@ -398,6 +398,9 @@
     PPOpts.DetailedRecord = true;
   }
 
+  if (!requestedToGetTU && !CInvok->getLangOpts()->Modules)
+    PPOpts.DetailedRecord = false;
+
   DiagnosticErrorTrap DiagTrap(*Diags);
   bool Success = ASTUnit::LoadFromCompilerInvocationAction(CInvok.getPtr(), Diags,
                                                        IndexAction.get(),





More information about the cfe-commits mailing list