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 d1f510cca8e966bd1742bf17256bfec99dcdf229 
09c7dd2f5973a364cccc48dd7ea17664f13c28aa -- clang/include/clang/AST/Expr.h 
clang/include/clang/AST/PrettyPrinter.h clang/lib/AST/DeclPrinter.cpp 
clang/lib/AST/Expr.cpp clang/lib/AST/TypePrinter.cpp 
clang/lib/Sema/SemaExpr.cpp clang/test/AST/Interp/literals.cpp 
clang/test/Analysis/eval-predefined-exprs.cpp 
clang/test/SemaCXX/source_location.cpp clang/unittests/AST/DeclPrinterTest.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/unittests/AST/DeclPrinterTest.cpp 
b/clang/unittests/AST/DeclPrinterTest.cpp
index c06cfa1ddd..1ee225b65a 100644
--- a/clang/unittests/AST/DeclPrinterTest.cpp
+++ b/clang/unittests/AST/DeclPrinterTest.cpp
@@ -359,13 +359,14 @@ TEST(DeclPrinter, TestCXXRecordDecl11) {
 }
 
 TEST(DeclPrinter, TestCXXRecordDecl12) {
-  ASSERT_TRUE(PrintedDeclCXX98Matches(
-    "struct S { int x; };"
-    "namespace NS { class C {};}"
-    "void foo(S s1, NS::C c1) {}",
-    "foo",
-    "void foo(struct S s1, class NS::C c1) {}",
-    [](PrintingPolicy &Policy){ Policy.ForcePrintingAsElaboratedType = true; 
}));
+  ASSERT_TRUE(
+      PrintedDeclCXX98Matches("struct S { int x; };"
+                              "namespace NS { class C {};}"
+                              "void foo(S s1, NS::C c1) {}",
+                              "foo", "void foo(struct S s1, class NS::C c1) 
{}",
+                              [](PrintingPolicy &Policy) {
+                                Policy.ForcePrintingAsElaboratedType = true;
+                              }));
 }
 
 TEST(DeclPrinter, TestFunctionDecl1) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/67592
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to