We've been running this internally for months now, without any
stability or correctness concerns. It has ~40% speed up on incremental
diagnostics latencies (as preamble can get invalidated through code completion
etc.).
Details
Details
- Reviewers
hokein - Commits
- rGbd89f9ec293e: [clangd] Always allow diagnostics from stale preambles
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/ConfigYAML.cpp | ||
---|---|---|
137 | I wonder whether it is worth keeping this flag, but no-op (just emitting an warning message, this flag is no-op). Probably not worth, since this flag was introduced recently, and it is not in any release. | |
clang-tools-extra/clangd/ParsedAST.h | ||
156–157 | nit: update the comment. |
clang-tools-extra/clangd/ConfigYAML.cpp | ||
---|---|---|
137 | that's what happens to unrecognized config keys already. user will get a diag message when parsing their config that says AllowStalePreamble is not recognized. |
I wonder whether it is worth keeping this flag, but no-op (just emitting an warning message, this flag is no-op).
Probably not worth, since this flag was introduced recently, and it is not in any release.