Previsouly, class completions items from the index were missing
template parameters in both the snippet and the label.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Nice, I'd been wondering about that...
clangd/index/SymbolCollector.cpp | ||
---|---|---|
36 ↗ | (On Diff #141821) | uber-nit: these three return statements are a bit confusing to me. Maybe omit them and if/elseif, so the default case falls through to the bottom. |
331 ↗ | (On Diff #141821) | "an actual run" confused me here. Maybe "We use the primary template, as clang does during code completion"? |
unittests/clangd/FileIndexTests.cpp | ||
218 ↗ | (On Diff #141821) | If snippets are off, we'll get "vector", not "vector<>", right? (Probably no need to test this explicitly, but I just want to be sure) |
Comment Actions
- Also test plain text completion text
- Clarify the comment
- Simplify conditions in getTemplateOrThis
unittests/clangd/FileIndexTests.cpp | ||
---|---|---|
218 ↗ | (On Diff #141821) | Yes, that's exactly the case. |