[PATCH] D156596: [Clang] Produce a warning instead of an error in unevaluated strings before C++26
Hubert Tong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 1 11:31:10 PDT 2023
hubert.reinterpretcast added inline comments.
================
Comment at: clang/include/clang/Basic/DiagnosticLexKinds.td:290
+ "encoding prefix '%0' on an unevaluated string literal has no effect"
+ "%select{| and is incompatible with c++2c}1">,
+ InGroup<DiagGroup<"invalid-unevaluated-string">>;
----------------
I am not seeing any tests covering C mode.
@aaron.ballman, can you confirm that you are okay with the warning when processing C code (and, moreover, the newly-added errors for numeric escape sequences)?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156596/new/
https://reviews.llvm.org/D156596
More information about the cfe-commits
mailing list