[PATCH] D115521: [Templight] Don't display empty strings for names of unnamed template parameters

2022-01-24 Thread Kristóf Umann via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG3ad35ba4dea5: [Templight] Don't display empty strings for names of unnamed template parameters (authored by Szelethus). Changed prior to commit: h

[PATCH] D115521: [Templight] Don't display empty strings for names of unnamed template parameters

2022-01-19 Thread Gabor Marton via Phabricator via cfe-commits
martong accepted this revision. martong added a comment. LGTM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D115521/new/ https://reviews.llvm.org/D115521 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/ma

[PATCH] D115521: [Templight] Don't display empty strings for names of unnamed template parameters

2022-01-11 Thread Kristóf Umann via Phabricator via cfe-commits
Szelethus added inline comments. Comment at: clang/lib/Frontend/FrontendActions.cpp:501 + +if (const auto *Decl = dyn_cast(NamedTemplate)) { + if (const auto *R = dyn_cast(Decl)) { Szelethus wrote: > martong wrote: > > martong wrote: > > > Should this ha

[PATCH] D115521: [Templight] Don't display empty strings for names of unnamed template parameters

2022-01-06 Thread Gabor Marton via Phabricator via cfe-commits
martong added inline comments. Comment at: clang/lib/Frontend/FrontendActions.cpp:501 + +if (const auto *Decl = dyn_cast(NamedTemplate)) { + if (const auto *R = dyn_cast(Decl)) { martong wrote: > Should this handle `EnumDecl`s as well? An enum declaratio

[PATCH] D115521: [Templight] Don't display empty strings for names of unnamed template parameters

2022-01-03 Thread Kristóf Umann via Phabricator via cfe-commits
Szelethus updated this revision to Diff 397054. Szelethus added a comment. Add a default text, if another, unhandled unnamed identifier pops up. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D115521/new/ https://reviews.llvm.org/D115521 Files: clang/lib/Frontend/FrontendActions.cpp

[PATCH] D115521: [Templight] Don't display empty strings for names of unnamed template parameters

2021-12-11 Thread Ábel Sinkovics via Phabricator via cfe-commits
sabel83 added inline comments. Comment at: clang/lib/Frontend/FrontendActions.cpp:554 + +llvm_unreachable("Failed to retrieve a name for this entry!"); + } Have you considered generating some default text here? In case a new, uncovered case does not get cov