This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Make HadErrors part of background index's internal state
ClosedPublic

Authored by kadircet on Jul 3 2019, 10:33 AM.

Event Timeline

kadircet created this revision.Jul 3 2019, 10:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 3 2019, 10:33 AM
sammccall accepted this revision.Jul 4 2019, 1:08 AM

Logic looks great, just naming/comment nits

clang-tools-extra/clangd/index/Background.cpp
274–275

, or we indexed successfully this time.

444–463

I'm happy with this inline or out-of-line, but if it's inline here it shouldn't have a function-style comment with \p :-)

clang-tools-extra/clangd/index/Background.h
98

I wonder whether a more "flavorful" name like "ShardVersion" might help explain the purpose here?

124–125

It's not obvious to me why we're apologising for this not being the include graph. The data happens to come from there (kind of) but I wouldn't really mention it.

125–126

rename mutex to match guarded variable

127

Again, I think "Versions" would make it more obvious what this is for.

This revision is now accepted and ready to land.Jul 4 2019, 1:08 AM
kadircet updated this revision to Diff 207986.Jul 4 2019, 1:34 AM
kadircet marked 6 inline comments as done.
  • Address comments
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 4 2019, 2:53 AM