[clang] [libclang/python] Deprecate CodeCompletionResults.results (PR #177764)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 24 05:40:01 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
``````````
: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
--- clang/cindex.py 2026-01-24 13:36:47.000000 +0000
+++ clang/cindex.py 2026-01-24 13:39:34.481349 +0000
@@ -3293,11 +3293,11 @@
return self.ptr.contents.results[key]
@property
def results(self) -> CCRStructure:
warnings.warn(
- "Access to 'CodeCompletionResult's through "
+ "Access to 'CodeCompletionResult's through "
"'CodeCompletionResults.results' will be removed in a future release."
"Existing uses of 'CodeCompletionResults.results' should be changed "
"to directly use 'CodeCompletionResults': it nows supports '__len__' "
"and '__getitem__', so it can be used the same as "
"'CodeCompletionResults.results'.",
``````````
</details>
https://github.com/llvm/llvm-project/pull/177764
More information about the cfe-commits
mailing list