[llvm] [mlir] [MLIR] Update GreedyRewriter to use the LDBG() debug log mechanism (NFC) (PR #153961)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 17 02:23:36 PDT 2025
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 HEAD~1 HEAD --extensions h,cpp -- llvm/include/llvm/Support/DebugLog.h llvm/unittests/Support/DebugLogTest.cpp mlir/lib/Transforms/Utils/DialectConversion.cpp mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/Support/DebugLogTest.cpp b/llvm/unittests/Support/DebugLogTest.cpp
index fa9bb0c81..e087705b7 100644
--- a/llvm/unittests/Support/DebugLogTest.cpp
+++ b/llvm/unittests/Support/DebugLogTest.cpp
@@ -122,7 +122,9 @@ TEST(DebugLogTest, DestructorPrefix) {
llvm::DebugFlag = true;
std::string str;
raw_string_ostream os(str);
- { llvm::impl::raw_ldbg_ostream ldbg_osB("PrefixB ", os); }
+ {
+ llvm::impl::raw_ldbg_ostream ldbg_osB("PrefixB ", os);
+ }
// After destructors, nothing should have been printed.
EXPECT_EQ(os.str(), "");
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/153961
More information about the llvm-commits
mailing list