[Mlir-commits] [mlir] [MLIR][Presburger] Make printing aligned to assist in debugging (PR #107648)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Sep 6 15:11:02 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 7815abec165114da29e191022c2816f857b1984f 0aedc160e05cb398a1083abb6faab960f027ffd9 --extensions h,cpp -- mlir/include/mlir/Analysis/Presburger/Utils.h mlir/lib/Analysis/Presburger/IntegerRelation.cpp mlir/lib/Analysis/Presburger/Matrix.cpp mlir/lib/Analysis/Presburger/Simplex.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/Analysis/Presburger/Utils.h b/mlir/include/mlir/Analysis/Presburger/Utils.h
index b6213a1f1e..1f471c79cb 100644
--- a/mlir/include/mlir/Analysis/Presburger/Utils.h
+++ b/mlir/include/mlir/Analysis/Presburger/Utils.h
@@ -305,7 +305,8 @@ struct PrintTableMetrics {
// Updates 'm' given a table entry val. Iterate over each val in the table
// with .maxPreIndent and .maxPostIndent initialized to 0.
// class T is any type that can be handled by llvm::raw_string_ostream.
-template <class T> void updatePrintMetrics(T val, PrintTableMetrics &m) {
+template <class T>
+void updatePrintMetrics(T val, PrintTableMetrics &m) {
std::string str;
llvm::raw_string_ostream(str) << val;
if (str.length() == 0)
``````````
</details>
https://github.com/llvm/llvm-project/pull/107648
More information about the Mlir-commits
mailing list