[Templight] Don't display empty strings for names of unnamed template parameters
authorKristóf Umann <dkszelethus@gmail.com>
Wed, 10 Nov 2021 14:03:06 +0000 (15:03 +0100)
committerKristóf Umann <dkszelethus@gmail.com>
Mon, 24 Jan 2022 15:37:11 +0000 (16:37 +0100)
commit3ad35ba4dea5240dd58476f0c85f0fe096d6c7ce
tree305497eb39abd8620e53988cb26fa4c07721e628
parent4d53f88d1a18e288362e1077ae09c98c843593ba
[Templight] Don't display empty strings for names of unnamed template parameters

Patch originally by oktal3000: https://github.com/mikael-s-persson/templight/pull/40

When a template parameter is unnamed, the name of -templight-dump might return
an empty string. This is fine, they are unnamed after all, but it might be more
user friendly to at least describe what entity is unnamed.

Differential Revision: https://reviews.llvm.org/D115521
clang/lib/Frontend/FrontendActions.cpp
clang/test/Templight/templight-empty-entries-fix.cpp [new file with mode: 0644]