[clang] [Clang][Sema] Diagnosis for constexpr constructor not initializing a union member (PR #81172)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 8 10:58:20 PST 2024
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 ab4a793e8bc78f50f9f104c9c732e2dd91bf70a2 aeb0686c76f2745111acd92c0d6b77faf69d2ed6 -- clang/test/SemaCXX/constexpr-union-temp-ctor-cxx.cpp clang/lib/Sema/SemaDeclCXX.cpp clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p4.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp
index 8da4f09576..f6c7410e3b 100644
--- a/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/clang/lib/Sema/SemaDeclCXX.cpp
@@ -1795,10 +1795,11 @@ static bool CheckConstexprFunctionBody(Sema &SemaRef, const FunctionDecl *Dcl,
Stmt *Body,
Sema::CheckConstexprKind Kind);
-static bool checkUnionConstructorIntializer(Sema &SemaRef, const FunctionDecl *Dcl,
- const CXXConstructorDecl *Constructor,
- const CXXRecordDecl *RD,
- Sema::CheckConstexprKind Kind);
+static bool
+checkUnionConstructorIntializer(Sema &SemaRef, const FunctionDecl *Dcl,
+ const CXXConstructorDecl *Constructor,
+ const CXXRecordDecl *RD,
+ Sema::CheckConstexprKind Kind);
// Check whether a function declaration satisfies the requirements of a
// constexpr function definition or a constexpr constructor definition. If so,
``````````
</details>
https://github.com/llvm/llvm-project/pull/81172
More information about the cfe-commits
mailing list