[clang] [Clang][C2y] Add support for if declarations (N3356 paper) (PR #198244)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed May 27 06:35:35 PDT 2026


================
@@ -1881,15 +1881,47 @@ Sema::ConditionResult Parser::ParseCXXCondition(StmtResult *InitStmt,
   }
 
   ParsedAttributes attrs(AttrFactory);
-  MaybeParseCXX11Attributes(attrs);
+  bool ParsedAttrs = MaybeParseCXX11Attributes(attrs);
----------------
AaronBallman wrote:

I think this is fine for now, but we should be parsing more than just `[[]]` attributes I believe: https://godbolt.org/z/bKzanY4bP

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


More information about the cfe-commits mailing list