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 cpp,c,h --
clang/test/CXX/cpp/cpp.concat/p3.cpp
clang/test/CXX/cpp/cpp.cond/Inputs/WinBase.h clang/test/CXX/cpp/cpp.cond/p9.cpp
clang/test/CXX/cpp/cpp.line/p3.cpp clang/test/CXX/cpp/cpp.line/p5.cpp
clang/test/CXX/cpp/cpp.predefined/p4.cpp
clang/test/CXX/cpp/cpp.replace.general/p14.cpp
clang/test/CXX/cpp/cpp.replace.general/p9.cpp clang/lib/Lex/PPDirectives.cpp
clang/lib/Lex/PPExpressions.cpp clang/test/C/drs/dr1xx.c
clang/test/C/drs/dr2xx.c clang/test/Lexer/cxx-features.cpp
clang/test/Lexer/gnu-flags.c clang/test/Misc/warning-flags.c
clang/test/Preprocessor/annotate_in_macro_arg.c
clang/test/Preprocessor/expr_define_expansion.c
clang/test/Preprocessor/macro-reserved-attrs-cxx11.cpp
clang/test/Preprocessor/macro-reserved-ms.c
clang/test/Preprocessor/macro-reserved.c
clang/test/Preprocessor/macro-reserved.cpp
clang/test/Preprocessor/macro_arg_directive.c
clang/test/Preprocessor/warn-macro-undef-true.c
clang/test/Sema/c++-keyword-in-c.c clang/test/Sema/static-assert.c
clang/test/SemaCXX/abstract.cpp clang/test/SemaCXX/consteval-builtin.cpp
clang/test/SemaCXX/cxx98-compat-pedantic.cpp
clang/test/SemaTemplate/instantiate-array.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/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp
index 003554bcf..1cae4c963 100644
--- a/clang/lib/Lex/PPDirectives.cpp
+++ b/clang/lib/Lex/PPDirectives.cpp
@@ -1384,7 +1384,7 @@ void Preprocessor::HandleDirective(Token &Result) {
case tok::pp_module:
case tok::pp___preprocessed_module:
case tok::pp___preprocessed_import: {
- Diag(Result, diag::err_embedded_directive)<< IK << DirectiveSpelling;
+ Diag(Result, diag::err_embedded_directive) << IK << DirectiveSpelling;
Diag(*ArgMacro, diag::note_macro_expansion_here)
<< ArgMacro->getIdentifierInfo();
DiscardUntilEndOfDirective();
@@ -1395,8 +1395,7 @@ void Preprocessor::HandleDirective(Token &Result) {
}
}
- Diag(Result, diag::warn_embedded_directive)
- << IK << DirectiveSpelling;
+ Diag(Result, diag::warn_embedded_directive) << IK << DirectiveSpelling;
}
// Temporarily enable macro expansion if set so
``````````
</details>
https://github.com/llvm/llvm-project/pull/196989
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits