[clang] [libclang/python] Add CompletionChunkKind enum and deprecate old CompletionChunk.Kind (PR #176631)

via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 17 23:52:11 PST 2026


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 origin/main...HEAD clang/bindings/python/clang/cindex.py clang/bindings/python/tests/cindex/test_code_completion.py clang/bindings/python/tests/cindex/test_enums.py
``````````

: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 darker here.
</summary>

``````````diff
--- tests/cindex/test_code_completion.py	2026-01-18 07:49:03.000000 +0000
+++ tests/cindex/test_code_completion.py	2026-01-18 07:51:42.130001 +0000
@@ -1,6 +1,12 @@
-from clang.cindex import AvailabilityKind, CompletionChunkKind, completionChunkKindMap, CompletionString, TranslationUnit
+from clang.cindex import (
+    AvailabilityKind,
+    CompletionChunkKind,
+    completionChunkKindMap,
+    CompletionString,
+    TranslationUnit,
+)
 
 import unittest
 from pathlib import Path
 
 

``````````

</details>


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


More information about the cfe-commits mailing list