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,h -- 
clang/include/clang/Format/Format.h 
clang/lib/Format/DefinitionBlockSeparator.cpp clang/lib/Format/Format.cpp 
clang/unittests/Format/DefinitionBlockSeparatorTest.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/unittests/Format/DefinitionBlockSeparatorTest.cpp 
b/clang/unittests/Format/DefinitionBlockSeparatorTest.cpp
index e5b7a2b25..32aea2f4d 100644
--- a/clang/unittests/Format/DefinitionBlockSeparatorTest.cpp
+++ b/clang/unittests/Format/DefinitionBlockSeparatorTest.cpp
@@ -292,12 +292,12 @@ TEST_F(DefinitionBlockSeparatorTest, Always) {
                Style);
 
   verifyFormat("// NOLINTBEGIN\n"
-              "int x = 1;\n"
-              "int y = 2;\n"
-              "// NOLINTEND\n"
-              "\n"
-              "void some_function() {}\n",
-              Style);
+               "int x = 1;\n"
+               "int y = 2;\n"
+               "// NOLINTEND\n"
+               "\n"
+               "void some_function() {}\n",
+               Style);
 
   std::string Prefix = "namespace {\n";
   std::string Infix = "\n"

``````````

</details>


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

Reply via email to