[clang] [Clang] Allow raw string literals in C as an extension (PR #88265)

via cfe-commits cfe-commits at lists.llvm.org
Sat May 4 09:49:03 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;
----------------
Sirraide wrote:

A bunch of the clang-format tests were failing before I made this change, but I think that may have been before I made some more changes to this; I’ll take another look at this.

https://github.com/llvm/llvm-project/pull/88265


More information about the cfe-commits mailing list