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,cpp -- 
clang-tools-extra/clangd/AST.cpp clang-tools-extra/clangd/FindSymbols.cpp 
clang-tools-extra/clangd/Hover.cpp clang-tools-extra/clangd/InlayHints.cpp 
clang/include/clang/AST/PrettyPrinter.h clang/lib/AST/Decl.cpp 
clang/lib/ASTMatchers/ASTMatchersInternal.cpp 
clang/lib/ExtractAPI/ExtractAPIConsumer.cpp clang/lib/Index/USRGeneration.cpp 
clang/lib/Interpreter/InterpreterUtils.cpp clang/lib/Sema/SemaChecking.cpp 
clang/lib/Sema/SemaCodeComplete.cpp clang/lib/Tooling/ASTDiff/ASTDiff.cpp 
clang/tools/libclang/CIndex.cpp clang/unittests/AST/TypePrinterTest.cpp 
clang/unittests/Tooling/QualTypeNamesTest.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/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index bb5649ace..4148e0ce1 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -4996,8 +4996,7 @@ void TagDecl::printAnonymousTagDecl(llvm::raw_ostream &OS,
     OS << ' ' << getKindName();
 
   if (Policy.AnonymousTagNameStyle ==
-          llvm::to_underlying(
-              PrintingPolicy::AnonymousTagMode::SourceLocation)) {
+      llvm::to_underlying(PrintingPolicy::AnonymousTagMode::SourceLocation)) {
     PresumedLoc PLoc =
         getASTContext().getSourceManager().getPresumedLoc(getLocation());
     if (PLoc.isValid()) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/182317
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to