================
@@ -130,6 +130,12 @@ struct LangStandard {
   /// hasDigraphs - Language supports digraphs.
   bool hasDigraphs() const { return Flags & Digraphs; }
 
+  /// hasRawStringLiterals - Language supports R"()" raw string literals.
+  bool hasRawStringLiterals() const {
+    // GCC supports raw string literals in C, but not in C++ before C++11.
+    return isCPlusPlus11() || (!isCPlusPlus() && isGNUMode());
----------------
AaronBallman wrote:

okay, so my guess was correct. It's still odd though because that same logic 
applies to C99 (it's "old" and the behavior can still change). But yeah, we 
should follow the same behavior as GCC in this case (less confusion for users).

https://github.com/llvm/llvm-project/pull/88265
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to