[PATCH] D55650: [clangd] Fix an assertion failure in background index.

Kadir Cetinkaya via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 14 03:36:44 PST 2018


kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.

LGTM, thanks!



================
Comment at: clangd/index/Background.cpp:384
   Action->EndSourceFile();
+  if (Clang->hasDiagnostics() &&
+      Clang->getDiagnostics().hasUncompilableErrorOccurred()) {
----------------
hokein wrote:
> kadircet wrote:
> > Then don't need to keep these checks anymore in the endsourcefileaction of indexingaction right?
> We need indeed. We have other clients (`clangd-indexer`, and our internal indexer) using the `IndexingAction` -- we don't want symbols from broken TUs because they causes many troublesomes.
Ah you are right.


Repository:
  rCTE Clang Tools Extra

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55650/new/

https://reviews.llvm.org/D55650





More information about the cfe-commits mailing list