This doesn't cover decls in diagnostics, which use NamedDecl::getNameForDiagnostic().
(That should also be fixed later I think).
This covers some cases of https://github.com/clangd/clangd/issues/76
(hover, but not outline or sighelp)
Paths
| Differential D70236
[AST] Use written names instead of `type-param-0-0` in more cases when printing types and decls. ClosedPublic Authored by sammccall on Nov 14 2019, 5:25 AM.
Details Summary This doesn't cover decls in diagnostics, which use NamedDecl::getNameForDiagnostic(). This covers some cases of https://github.com/clangd/clangd/issues/76
Diff Detail
Event TimelineComment Actions Build result: pass - 60015 tests passed, 0 failed and 722 were skipped. Comment Actions Build result: pass - 60015 tests passed, 0 failed and 722 were skipped. This revision is now accepted and ready to land.Nov 15 2019, 1:04 AM Closed by commit rG87054ec07bd5: [AST] Use written names instead of `type-param-0-0` in more cases when printing… (authored by sammccall). · Explain WhyNov 15 2019, 1:45 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 229287 clang-tools-extra/clangd/unittests/FindTargetTests.cpp
clang-tools-extra/clangd/unittests/XRefsTests.cpp
clang/lib/AST/DeclPrinter.cpp
clang/test/Index/print-display-names.cpp
clang/unittests/AST/DeclPrinterTest.cpp
|
so here, do we need to respect the SubPolicy.PrintCanonicalTypes ?