aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Frontend/CompilerInvocationTest.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2022-10-14 08:17:16 -0400
committerAaron Ballman <aaron@aaronballman.com>2022-10-14 08:18:28 -0400
commit19e984ef8f49bc3ccced15621989fa9703b2cd5b (patch)
treed130cb8421bab54d6627aeca1b468d74f0d66944 /clang/unittests/Frontend/CompilerInvocationTest.cpp
parentce4d5ae9dcf64deade70f305b8d7ab8d0dc80102 (diff)
downloadllvm-19e984ef8f49bc3ccced15621989fa9703b2cd5b.zip
llvm-19e984ef8f49bc3ccced15621989fa9703b2cd5b.tar.gz
llvm-19e984ef8f49bc3ccced15621989fa9703b2cd5b.tar.bz2
Properly print unnamed TagDecl objects in diagnostics
The diagnostics engine is very smart about being passed a NamedDecl to print as part of a diagnostic; it gets the "right" form of the name, quotes it properly, etc. However, the result of using an unnamed tag declaration was to print '' instead of anything useful. This patch causes us to print the same information we'd have gotten if we had printed the type of the declaration rather than the name of it, as that's the most relevant information we can display. Differential Revision: https://reviews.llvm.org/D134813
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions