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 23b233c8adad5b81e185e50d04356fab64c2f870 fe082a252d7290730f39228736d93eeea992e041 -- clang/test/C/C2x/n3006.c clang/test/Parser/c2x-underspecified-decls.c clang/lib/Sema/SemaExpr.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 8166748c38..31a1922f07 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -7826,16 +7826,17 @@ Sema::BuildCompoundLiteralExpr(SourceLocation LParenLoc, TypeSourceInfo *TInfo, // We should diagnose underspecified declaration, unless the identifier has // been diagnosed as being a redefinition, since the tag is made anonymous. if (Range.fullyContains(TagRange) && Tag->getDecl()->getIdentifier()) { - Diag(TagRange.getBegin(), - diag::err_c23_underspecified_object_declaration) - << (unsigned)Tag->getDecl()->getTagKind() - << Tag->getDecl()->getName() << TagRange; + Diag(TagRange.getBegin(), diag::err_c23_underspecified_object_declaration) + << (unsigned)Tag->getDecl()->getTagKind() << Tag->getDecl()->getName() + << TagRange; return ExprError(); } } else if (!literalType->isDependentType() && - RequireCompleteType(LParenLoc, literalType, - diag::err_typecheck_decl_incomplete_type, - SourceRange(LParenLoc, LiteralExpr->getSourceRange().getEnd()))) + RequireCompleteType( + LParenLoc, literalType, + diag::err_typecheck_decl_incomplete_type, + SourceRange(LParenLoc, + LiteralExpr->getSourceRange().getEnd()))) return ExprError(); InitializedEntity Entity `````````` </details> https://github.com/llvm/llvm-project/pull/79845 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits