[clang] [libclang/python] Refactor enum usage (PR #95608)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 24 09:49:55 PDT 2024
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 cc7a18c18011d1e0c70187ceb60e3e69bf7cd0ee...82f120f207a4a9425cdbccafdba8974bc00ffc51 clang/bindings/python/clang/cindex.py clang/bindings/python/tests/cindex/test_enums.py clang/bindings/python/tests/cindex/test_token_kind.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- clang/cindex.py 2024-06-24 16:45:44.000000 +0000
+++ clang/cindex.py 2024-06-24 16:49:25.859947 +0000
@@ -600,11 +600,11 @@
@classmethod
def from_value(cls, value):
"""Obtain a registered TokenKind instance from its value."""
return cls.from_id(value)
-
+
PUNCTUATION = 0
KEYWORD = 1
IDENTIFIER = 2
LITERAL = 3
COMMENT = 4
``````````
</details>
https://github.com/llvm/llvm-project/pull/95608
More information about the cfe-commits
mailing list