[llvm] [RremoveDIs] Update some unittests to the new format (PR #90476)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 07:19:04 PDT 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 da57609947f254fb13f1556d4d29c7a0f9a23160 8913696c17e51c03c34550b2a5d02d16d09bc9a1 -- llvm/include/llvm/AsmParser/LLParser.h llvm/lib/AsmParser/LLParser.cpp llvm/lib/Bitcode/Reader/BitcodeReader.cpp llvm/lib/IR/BasicBlock.cpp llvm/lib/IR/Function.cpp llvm/lib/IR/Module.cpp llvm/tools/llvm-as/llvm-as.cpp llvm/tools/llvm-dis/llvm-dis.cpp llvm/tools/llvm-link/llvm-link.cpp llvm/unittests/Analysis/IRSimilarityIdentifierTest.cpp llvm/unittests/IR/BasicBlockDbgInfoTest.cpp llvm/unittests/IR/DebugInfoTest.cpp llvm/unittests/IR/InstructionsTest.cpp llvm/unittests/Transforms/Utils/CloningTest.cpp llvm/unittests/Transforms/Utils/LocalTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/Transforms/Utils/LocalTest.cpp b/llvm/unittests/Transforms/Utils/LocalTest.cpp
index b19c6d8e46..3de459f2ea 100644
--- a/llvm/unittests/Transforms/Utils/LocalTest.cpp
+++ b/llvm/unittests/Transforms/Utils/LocalTest.cpp
@@ -859,9 +859,8 @@ TEST(Local, ReplaceAllDbgUsesWith) {
   findDbgUsers(CDbgVals, &C, &CDbgRecords);
   EXPECT_EQ(0U, CDbgVals.size());
   EXPECT_EQ(2U, CDbgRecords.size());
-  EXPECT_TRUE(all_of(CDbgRecords, [](DbgVariableRecord *DVR) {
-    return DVR->isDbgDeclare();
-  }));
+  EXPECT_TRUE(all_of(
+      CDbgRecords, [](DbgVariableRecord *DVR) { return DVR->isDbgDeclare(); }));
 
   EXPECT_TRUE(replaceAllDbgUsesWith(C, D, D, DT));
 
@@ -870,9 +869,8 @@ TEST(Local, ReplaceAllDbgUsesWith) {
   findDbgUsers(DDbgVals, &D, &DDbgRecords);
   EXPECT_EQ(0U, DDbgVals.size());
   EXPECT_EQ(2U, DDbgRecords.size());
-  EXPECT_TRUE(all_of(DDbgRecords, [](DbgVariableRecord *DVR) {
-    return DVR->isDbgDeclare();
-  }));
+  EXPECT_TRUE(all_of(
+      DDbgRecords, [](DbgVariableRecord *DVR) { return DVR->isDbgDeclare(); }));
 
   // Introduce a use-before-def. Check that the dbg.value for %a is salvaged.
   EXPECT_TRUE(replaceAllDbgUsesWith(A, F_, F_, DT));

``````````

</details>


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


More information about the llvm-commits mailing list