Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions clang/bindings/python/clang/cindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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()

Expand Down