[Mlir-commits] [mlir] [mlir] Add next streaming manipulator to MLIR diagnostic infrastructure (PR #217804)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Sep 23 07:00: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 h,cpp -- mlir/test/lib/IR/TestDiagnosticsNext.cpp mlir/include/mlir/IR/Diagnostics.h mlir/lib/IR/Diagnostics.cpp mlir/tools/mlir-opt/mlir-opt.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/mlir/include/mlir/IR/Diagnostics.h b/mlir/include/mlir/IR/Diagnostics.h
index 7fba0fed4..f3bd8029b 100644
--- a/mlir/include/mlir/IR/Diagnostics.h
+++ b/mlir/include/mlir/IR/Diagnostics.h
@@ -258,7 +258,8 @@ public:
void print(raw_ostream &os,
std::optional<int64_t> messagePartIndex = std::nullopt) const;
- /// Converts the diagnostic to a string, concatenating all the parts if there are multiples.
+ /// Converts the diagnostic to a string, concatenating all the parts if there
+ /// are multiples.
std::string str() const;
/// Converts each message part to a separate string. Returns a single string
``````````
</details>
https://github.com/llvm/llvm-project/pull/217804
More information about the Mlir-commits
mailing list