[clang] Remove duplicate API (PR #132776)

via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 24 09:47:43 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r 1f967887018c63bddf5bf2860e0e6a3aa1e85840...ad58171d90be5e93c33c54f87f8c35096d13e680 clang/bindings/python/clang/cindex.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- cindex.py	2025-03-24 16:36:15.000000 +0000
+++ cindex.py	2025-03-24 16:47:09.297501 +0000
@@ -1874,13 +1874,11 @@
         Retrieves the opcode if this cursor points to a binary operator
         :return:
         """
 
         if not hasattr(self, "_binopcode"):
-            self._binopcode = (
-                conf.lib.clang_Cursor_getCursorBinaryOperatorKind(self)
-            )
+            self._binopcode = conf.lib.clang_Cursor_getCursorBinaryOperatorKind(self)
 
         return BinaryOperator.from_id(self._binopcode)
 
     @property
     def access_specifier(self):

``````````

</details>


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


More information about the cfe-commits mailing list