The alias itself is already included in the definition section of the
hover (it's printed as spelled in source code). So it doesn't provide any value
when we print the aliases as-is.
Fixes https://github.com/clangd/clangd/issues/1134.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM. Please take a look the NIT about landing this as two commits.
clang-tools-extra/clangd/Hover.cpp | ||
---|---|---|
581 | NIT: maybe use auto& here? | |
626–627 | NIT: could you please land the refactoring with ASTContext and this change separately? |
NIT: maybe use auto& here?
The name of the type is mentioned directly in the initialization.