Don't invoke parsing callback for preamble if clangd is using a
previously built one.
Details
Details
- Reviewers
sammccall - Commits
- rGc959da9ef344: [clangd] Only publish preamble after rebuilds
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/TUScheduler.cpp | ||
---|---|---|
904 | I think it would be clearer to invert the sense here (ReusedPreamble=false). This avoids the "tension" of saying RebuiltPreamble=true when we haven't built one yet, and then having to ensure we satisfy that promise later. |
I think it would be clearer to invert the sense here (ReusedPreamble=false).
This avoids the "tension" of saying RebuiltPreamble=true when we haven't built one yet, and then having to ensure we satisfy that promise later.