[clang] [ObjC] Emit number, array, and dictionary literals as constants (PR #185130)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 6 16:55:11 PST 2026


================
@@ -518,6 +584,10 @@ ExprResult SemaObjC::BuildObjCBoxedExpr(SourceRange SR, Expr *ValueExpr) {
   if (RValue.isInvalid()) {
     return ExprError();
   }
+
+  // Check if the runtime supports constant init literals
+  bool const IsConstInitLiteral =
----------------
ojhunt wrote:

const bool again. I do wonder if we can add this kind of rule to the style bot?

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


More information about the cfe-commits mailing list