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/ContinuationIndenter.cpp
clang/lib/Format/Format.cpp clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/ConfigParseTest.cpp
clang/unittests/Format/FormatTest.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/ConfigParseTest.cpp
b/clang/unittests/Format/ConfigParseTest.cpp
index 7b33ab4fd..f270602f3 100644
--- a/clang/unittests/Format/ConfigParseTest.cpp
+++ b/clang/unittests/Format/ConfigParseTest.cpp
@@ -502,7 +502,7 @@ TEST(ConfigParseTest, ParsesConfiguration) {
.value());
ASSERT_EQ(Style.BreakBinaryOperations.PerOperator.size(), 1u);
std::vector<tok::TokenKind> ExpectedShiftOps = {tok::greater,
- tok::greatergreater};
+ tok::greatergreater};
EXPECT_EQ(Style.BreakBinaryOperations.PerOperator[0].Operators,
ExpectedShiftOps);
diff --git a/clang/unittests/Format/FormatTest.cpp
b/clang/unittests/Format/FormatTest.cpp
index 66d3e5d68..43633b582 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -28748,7 +28748,6 @@ TEST_F(FormatTest, BreakBinaryOperationsPerOperator) {
" packet_number >>\n"
" packet_scale;",
Style);
-
}
TEST_F(FormatTest, BreakBinaryOperationsMinChainLength) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/181051
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits