[PATCH] D156597: [Clang] Handle static_assert messages with an expression started by a literal

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 29 08:41:14 PDT 2023


tbaeder added inline comments.


================
Comment at: clang/lib/Parse/ParseDeclCXX.cpp:1019
 
-    if (isTokenStringLiteral())
-      AssertMessage = ParseUnevaluatedStringLiteralExpression();
-    else if (getLangOpts().CPlusPlus26)
+    bool ParseAsExression = false;
+    if(getLangOpts().CPlusPlus26) {
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156597/new/

https://reviews.llvm.org/D156597



More information about the cfe-commits mailing list