[PATCH] D105759: Implement P2361 Unevaluated string literals

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 28 06:37:42 PDT 2023


erichkeane added a comment.

Just 2 small nits, otherwise this all LGTM.



================
Comment at: clang/lib/Parse/ParseDecl.cpp:430
+    }
+    if (Expr.isInvalid()) {
+      SawError = true;
----------------
Please put a newline between unchained 'if' statements... it makes tehse really hard to read without it.

It happens a few times here.


================
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:878
 
-  if (!isIntOrBool(AL.getArgAsExpr(0))) {
+  Expr *First = AL.getArgAsExpr(0);
+  if (!isIntOrBool(First)) {
----------------
Unrelated change here?  What is this for?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105759



More information about the cfe-commits mailing list