[clang] [Clang] Allow raw string literals in C as an extension (PR #88265)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Fri May 3 22:35:45 PDT 2024
================
@@ -3850,6 +3850,7 @@ LangOptions getFormattingLangOpts(const FormatStyle &Style) {
// the sequence "<::" will be unconditionally treated as "[:".
// Cf. Lexer::LexTokenInternal.
LangOpts.Digraphs = LexingStd >= FormatStyle::LS_Cpp11;
+ LangOpts.RawStringLiterals = LexingStd >= FormatStyle::LS_Cpp11;
----------------
owenca wrote:
As clang-format formats all C code as C++, there's no need to set the new `RawStringLiterals` option here.
https://github.com/llvm/llvm-project/pull/88265
More information about the cfe-commits
mailing list