[clang] [clang][CompundLiteralExpr] Don't defer evaluation for CLEs (PR #137163)

via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 24 04:54:42 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- clang/test/AST/static-compound-literals.cpp clang/include/clang/AST/Expr.h clang/lib/AST/Expr.cpp clang/lib/AST/ExprConstant.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h
index 95c0f910c..ed56522d1 100644
--- a/clang/include/clang/AST/Expr.h
+++ b/clang/include/clang/AST/Expr.h
@@ -3524,7 +3524,7 @@ public:
   }
 
   bool hasStaticStorage() const { return isFileScope() && isGLValue(); }
-  APValue *getOrCreateStaticValue(ASTContext& Ctx) const;
+  APValue *getOrCreateStaticValue(ASTContext &Ctx) const;
   APValue &getStaticValue() const {
     assert(StaticValue);
     return *StaticValue;

``````````

</details>


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


More information about the cfe-commits mailing list