This will be used together with D40548 for the global index source (experimental).
Details
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 13059 Build 13059: arc lint + arc unit
Event Timeline
Nice! just nits
clangd/index/SymbolFromYAML.cpp | ||
---|---|---|
32 | what does NP stand for? | |
44 | Nit: for readability, I suggest you encode as a hex string instead. We don't yet have operator<< for SymbolID, but I think we should, and it should be consistent. | |
clangd/index/SymbolFromYAML.h | ||
1 | nit: SymbolFromYAML.h seems slightly off for the file, because you support both conversions (and also multiple symbols) Consider just YAML.h? | |
8 | File comment, describing what's going on here, use cases. In particular, I'd note that the format is designed for simplicity but isn't a suitable/efficient store and isn't intended for real use by end-users. | |
23 | We may have multiple slabs, e.g. if we want to dump the dynamic index. | |
unittests/clangd/SymbolCollectorTests.cpp | ||
108 | round-trip is good to test the serialization, but can you add a separate test case loading a simple symbol from an actual YAML string? |
This isn't needed anymore (if you remove the friend below)