diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2022-10-14 08:17:16 -0400 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2022-10-14 08:18:28 -0400 |
commit | 19e984ef8f49bc3ccced15621989fa9703b2cd5b (patch) | |
tree | d130cb8421bab54d6627aeca1b468d74f0d66944 /clang/unittests/Frontend/CompilerInvocationTest.cpp | |
parent | ce4d5ae9dcf64deade70f305b8d7ab8d0dc80102 (diff) | |
download | llvm-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