aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorMatheus Izvekov <mizvekov@gmail.com>2025-04-07 23:19:32 -0300
committerGitHub <noreply@github.com>2025-04-07 23:19:32 -0300
commitd057811655d8de3900748bba03d0c7ebcb6fafe3 (patch)
tree1f7f3945310772f49254119f2ddf55901005ff43 /clang/lib/CodeGen/CodeGenModule.cpp
parent3a0c95fb506301fdd083b6e5dff0a0c88da4a665 (diff)
downloadllvm-d057811655d8de3900748bba03d0c7ebcb6fafe3.zip
llvm-d057811655d8de3900748bba03d0c7ebcb6fafe3.tar.gz
llvm-d057811655d8de3900748bba03d0c7ebcb6fafe3.tar.bz2
[clang] fix diagnostic printing of expressions ignoring LangOpts (#134693)
Currently when printing a template argument of expression type, the expression is converted immediately into a string to be sent to the diagnostic engine, unsing a fake LangOpts. This makes the expression printing look incorrect for the current language, besides being inneficient, as we don't actually need to print the expression if the diagnostic would be ignored. This fixes a nastiness with the TemplateArgument constructor for expressions being implicit, and all current users just passing an expression to a diagnostic were implicitly going through the template argument path. The expressions are also being printed unquoted. This will be fixed in a subsequent patch, as the test churn is much larger.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions