This can happen when, for example, merging results from an external
index that generates IncludeHeaders with full URI rather than just
literal include.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/CodeComplete.cpp | ||
---|---|---|
187 | (sorry for the late drive by comment) if this returns an error it needs to be consumed to ensure we don't crash (destructor of Expected asserts) but apart from that, this introduces lots of new string manipulations for every completion item, might have bad impact on latency especially when the include paths are long and require heap allocations. something to keep in mind once this hits production (and maybe we can choose to approximate or not do it at all if it turns out to be problematic) |
(sorry for the late drive by comment)
if this returns an error it needs to be consumed to ensure we don't crash (destructor of Expected asserts)
but apart from that, this introduces lots of new string manipulations for every completion item, might have bad impact on latency especially when the include paths are long and require heap allocations. something to keep in mind once this hits production (and maybe we can choose to approximate or not do it at all if it turns out to be problematic)