This is to enable cache invalidation when command line flags changes.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This makes sense but is hard to debug - is there a reason we don't just store (the relevant parts of) the actual compile command? Size?
| clang-tools-extra/clangd/index/Background.cpp | ||
|---|---|---|
| 434 ↗ | (On Diff #207343) | only CommandLine and Directory are relevant. |
Comment Actions
Yes I had the size in mind, also didn't see any use case for the actual compile commands.
As for size, I suppose it is OK to store the whole command as it is only stored for the main file of a TU.
Comment Actions
Still LG
| clang-tools-extra/clangd/index/Serialization.h | ||
|---|---|---|
| 48 ↗ | (On Diff #207489) | Need to document that this contains only Directory and CommandLine (or use another struct) |
| clang-tools-extra/clangd/index/Serialization.cpp | ||
|---|---|---|
| 418 ↗ | (On Diff #207489) | the packed ArrayRef is a bit weird here. |