[clang] [clang-format] Add parse tests for SeparateDefinitionBlocks option (PR #78256)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 16 02:59:40 PST 2024


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 1074b94f5df6e164997cdb494f47657fd49d7cb5 5399fad41b3898abe0833e283101aa34e76389b9 -- clang/unittests/Format/ConfigParseTest.cpp
``````````

</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 f409a6a946..172aaab598 100644
--- a/clang/unittests/Format/ConfigParseTest.cpp
+++ b/clang/unittests/Format/ConfigParseTest.cpp
@@ -997,7 +997,6 @@ TEST(ConfigParseTest, ParsesConfiguration) {
   CHECK_PARSE("AllowBreakBeforeNoexceptSpecifier: Never",
               AllowBreakBeforeNoexceptSpecifier, FormatStyle::BBNSS_Never);
 
-
   Style.SeparateDefinitionBlocks = FormatStyle::SDS_Never;
   CHECK_PARSE("SeparateDefinitionBlocks: Always", SeparateDefinitionBlocks,
               FormatStyle::SDS_Always);

``````````

</details>


https://github.com/llvm/llvm-project/pull/78256


More information about the cfe-commits mailing list