-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[libclang/python] Remove compatibility workaround for briefComment #138135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-clang Author: Jannick Kremer (DeinAlptraum) ChangesFull diff: https://github.com/llvm/llvm-project/pull/138135.diff 1 Files Affected:
diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py
index e4a731b1d57fa..2b0a1db04821e 100644
--- a/clang/bindings/python/clang/cindex.py
+++ b/clang/bindings/python/clang/cindex.py
@@ -2980,11 +2980,7 @@ def availability(self):
@property
def briefComment(self):
- if conf.function_exists("clang_getCompletionBriefComment"):
- return _CXString.from_result(
- conf.lib.clang_getCompletionBriefComment(self.obj)
- )
- return ""
+ return _CXString.from_result(conf.lib.clang_getCompletionBriefComment(self.obj))
def __repr__(self):
return (
@@ -4264,14 +4260,6 @@ def get_cindex_library(self) -> CDLL:
return library
- def function_exists(self, name: str) -> bool:
- try:
- getattr(self.lib, name)
- except AttributeError:
- return False
-
- return True
-
conf = Config()
|
For the record, this was discussed in #138132 (comment) |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/17007 Here is the relevant piece of the build log for the reference
|
…lvm#138135) Remove a workaround that made cindex.py from LLVM 3.2 work with older libclang.so versions
…lvm#138135) Remove a workaround that made cindex.py from LLVM 3.2 work with older libclang.so versions
…lvm#138135) Remove a workaround that made cindex.py from LLVM 3.2 work with older libclang.so versions
…lvm#138135) Remove a workaround that made cindex.py from LLVM 3.2 work with older libclang.so versions
…lvm#138135) Remove a workaround that made cindex.py from LLVM 3.2 work with older libclang.so versions
Remove a workaround that made cindex.py from LLVM 3.2 work with older libclang.so versions