diff options
author | Richard Smith <richard@metafoo.co.uk> | 2024-09-19 12:40:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-19 12:40:34 -0700 |
commit | dd8b266efa6fbfb4aaff9f6ec95d7a361c10f1b8 (patch) | |
tree | 01fd566b5f89564f197dfec56f98698fb5cd4243 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 3b3accb598ec87a6a30b0e18ded06071030bb78f (diff) | |
download | llvm-dd8b266efa6fbfb4aaff9f6ec95d7a361c10f1b8.zip llvm-dd8b266efa6fbfb4aaff9f6ec95d7a361c10f1b8.tar.gz llvm-dd8b266efa6fbfb4aaff9f6ec95d7a361c10f1b8.tar.bz2 |
[demangle] Represent a char array initializer as a string literal. (#109021)
This improves the demangling for non-type template arguments that
contain string literals. Previously we'd produce
char [4]{(char)65, (char)66, (char)67}
(which isn't valid C or C++), and now we produce `"ABC"`.
The new demangling is always shorter, even when using an escape sequence
for every character, and much more readable when the char array contains
text.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions