[Mlir-commits] [mlir] [mlir][python] source line info (PR #149166)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jul 28 17:47:37 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 -- mlir/lib/Bindings/Python/Traceback.cpp mlir/lib/Bindings/Python/Traceback.h mlir/lib/Bindings/Python/MainModule.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Bindings/Python/Traceback.cpp b/mlir/lib/Bindings/Python/Traceback.cpp
index 43ab99254..b0624717b 100644
--- a/mlir/lib/Bindings/Python/Traceback.cpp
+++ b/mlir/lib/Bindings/Python/Traceback.cpp
@@ -43,7 +43,7 @@ limitations under the License.
 
 // Introduced in python 3.10
 #if PY_VERSION_HEX < 0x030a00f0
-PyObject * Py_NewRef(PyObject *o) {
+PyObject *Py_NewRef(PyObject *o) {
   Py_INCREF(o);
   return o;
 }

``````````

</details>


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


More information about the Mlir-commits mailing list