[llvm] [llvm][DebugInfo] formatv - Tests (PR #191980)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 02:26:12 PDT 2026


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 -- llvm/unittests/Support/FormatVariadicTest.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/llvm/unittests/Support/FormatVariadicTest.cpp b/llvm/unittests/Support/FormatVariadicTest.cpp
index 7ab66415f..875a2dea3 100644
--- a/llvm/unittests/Support/FormatVariadicTest.cpp
+++ b/llvm/unittests/Support/FormatVariadicTest.cpp
@@ -442,9 +442,12 @@ TEST(FormatAndFormatvTest, StringPadding) {
   // the format string and the padding needs to be one off.
   EXPECT_EQ("[abcd         ]",
             formatv("[{0}]", fmt_pad("abcd", 0, 10 - 1)).str());
-  // We can also use the fmt_align function instead of fmt_pad but it makes it a bit more complex
+  // We can also use the fmt_align function instead of fmt_pad but it makes it a
+  // bit more complex
   EXPECT_EQ("[abcd         ]",
-            formatv("[{0}]", fmt_align("abcd", AlignStyle::Left, 10 + strlen("abcd") - 1 )).str());
+            formatv("[{0}]", fmt_align("abcd", AlignStyle::Left,
+                                       10 + strlen("abcd") - 1))
+                .str());
 }
 
 TEST(FormatAndFormatvTest, Alignment) {

``````````

</details>


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


More information about the llvm-commits mailing list