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 origin/main HEAD --extensions h,c,cpp --
clang/include/clang/Lex/Lexer.h clang/include/clang/Lex/Preprocessor.h
clang/lib/Lex/Lexer.cpp clang/lib/Lex/PPDirectives.cpp
clang/lib/Lex/PPExpressions.cpp clang/lib/Parse/ParseCXXInlineMethods.cpp
clang/lib/Parse/ParseDecl.cpp clang/lib/Parse/ParseDeclCXX.cpp
clang/lib/Parse/ParseExpr.cpp clang/lib/Parse/ParseExprCXX.cpp
clang/lib/Parse/ParseObjc.cpp clang/lib/Parse/ParseOpenMP.cpp
clang/lib/Parse/ParseStmt.cpp clang/lib/Parse/ParseTemplate.cpp
clang/lib/Parse/Parser.cpp clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaExpr.cpp clang/lib/Sema/SemaLambda.cpp
clang/lib/Sema/SemaStmt.cpp clang/lib/Sema/SemaTemplate.cpp
clang/lib/Sema/SemaTemplateVariadic.cpp clang/lib/Sema/SemaType.cpp
clang/test/CXX/basic/basic.lookup/basic.lookup.qual/namespace.qual/p2.cpp
clang/test/CXX/drs/cwg0xx.cpp clang/test/CXX/drs/cwg4xx.cpp
clang/test/CXX/stmt.stmt/stmt.select/p3.cpp
clang/test/Lexer/cxx2c-raw-strings.cpp clang/test/Parser/cxx0x-in-cxx98.cpp
clang/test/Parser/cxx0x-lambda-expressions.cpp
clang/test/Parser/cxx11-user-defined-literals.cpp
clang/test/Parser/cxx1z-nested-namespace-definition.cpp
clang/test/Sema/static-assert.c clang/test/SemaCXX/cxx98-compat.cpp
clang/test/SemaCXX/static-assert-ext.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp
index 78d0648c7..5e67cd551 100644
--- a/clang/lib/Parse/ParseStmt.cpp
+++ b/clang/lib/Parse/ParseStmt.cpp
@@ -2483,7 +2483,8 @@ StmtResult Parser::ParseReturnStatement() {
if (Tok.is(tok::l_brace) && getLangOpts().CPlusPlus) {
R = ParseInitializer();
if (R.isUsable())
- DiagCompat(R.get()->getBeginLoc(),
diag_compat::generalized_initializer_lists);
+ DiagCompat(R.get()->getBeginLoc(),
+ diag_compat::generalized_initializer_lists);
} else
R = ParseExpression();
if (R.isInvalid()) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/216693
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits