[cfe-commits] r165593 - /cfe/trunk/tools/libclang/Indexing.cpp
Erik Verbruggen
erik.verbruggen at me.com
Wed Oct 10 08:19:28 PDT 2012
On 10 okt. 2012, at 04:12, Argyrios Kyrtzidis <akyrtzi at gmail.com> wrote:
> 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.
Is it (still?) possible to index macro definitions/usages?
-- Erik
> 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(),
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list