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/include/mlir/Bindings/Python/IRAttributes.h 
mlir/include/mlir/Bindings/Python/IRCore.h 
mlir/include/mlir/Bindings/Python/IRTypes.h 
mlir/lib/Bindings/Python/IRAttributes.cpp mlir/lib/Bindings/Python/IRTypes.cpp 
mlir/lib/Bindings/Python/MainModule.cpp 
mlir/test/python/lib/PythonTestModuleNanobind.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/lib/Bindings/Python/IRAttributes.cpp 
b/mlir/lib/Bindings/Python/IRAttributes.cpp
index 2ad453e61..23f7a8c57 100644
--- a/mlir/lib/Bindings/Python/IRAttributes.cpp
+++ b/mlir/lib/Bindings/Python/IRAttributes.cpp
@@ -1187,14 +1187,14 @@ void PyStridedLayoutAttribute::bindDerived(ClassTy &c) {
 }
 
 PyType_Slot PyDenseElementsAttribute::slots[] = {
-  // Python 3.8 doesn't allow setting the buffer protocol slots from a type 
spec.
+// Python 3.8 doesn't allow setting the buffer protocol slots from a type spec.
 #if PY_VERSION_HEX >= 0x03090000
-  {Py_bf_getbuffer,
-   reinterpret_cast<void *>(PyDenseElementsAttribute::bf_getbuffer)},
-  {Py_bf_releasebuffer,
-   reinterpret_cast<void *>(PyDenseElementsAttribute::bf_releasebuffer)},
+    {Py_bf_getbuffer,
+     reinterpret_cast<void *>(PyDenseElementsAttribute::bf_getbuffer)},
+    {Py_bf_releasebuffer,
+     reinterpret_cast<void *>(PyDenseElementsAttribute::bf_releasebuffer)},
 #endif
-  {0, nullptr},
+    {0, nullptr},
 };
 
 /*static*/ int PyDenseElementsAttribute::bf_getbuffer(PyObject *obj,

``````````

</details>


https://github.com/llvm/llvm-project/pull/173939
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to