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.

Diff Detail

Repository
rL LLVM

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
276 ↗(On Diff #207837)

, or we indexed successfully this time.

444 ↗(On Diff #207837)

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 ↗(On Diff #207837)

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

125 ↗(On Diff #207837)

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.

128 ↗(On Diff #207837)

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

129 ↗(On Diff #207837)

rename mutex to match guarded variable

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