[clang] [libclang/python] Deprecate CodeCompletionResults.results (PR #177764)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 29 06:56:39 PST 2026


================
@@ -3296,7 +3358,7 @@ def __getitem__(self, key: int) -> CodeCompletionResult:
     def results(self) -> CCRStructure:
         warnings.warn(
             "Access to 'CodeCompletionResult's through "
-            "'CodeCompletionResults.results' will be removed in a future release."
+            "'CodeCompletionResults.results' will be removed in a future release. "
----------------
Endilll wrote:

I know we're used to stuff being removed, but this time `CodeCompletionResults.results` will change its meaning. Maybe DeprecationWarning is wrong, and we need a FutureWarning instead.

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


More information about the cfe-commits mailing list