Merge pull request #23598 from komakai:fix-objc-gen-baseclass

Fix Objective-C generator handling of base class names
This commit is contained in:
Alexander Smorkalov 2023-05-10 14:07:38 +03:00 committed by GitHub
commit 8baabdfb57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,7 +290,7 @@ class ClassInfo(GeneralInfo):
self.member_classes = [] # Only relevant for modules
self.member_enums = [] # Only relevant for modules
if decl[1]:
self.base = re.sub(r"^.*:", "", decl[1].split(",")[0]).strip().replace(self.objc_name, "")
self.base = re.sub(r"^.*:", "", decl[1].split(",")[0]).strip()
if self.base:
self.is_base_class = False
self.native_ptr_name = "nativePtr" + self.objc_name