Skip to content

libclang: Get interface name of a category (CXCursor_ObjCCategoryImplDecl) #139535

Open
@piegamesde

Description

@piegamesde

Given the following code

@implementation NSDateFormatter (MyInterface)
…
@end

and a CXCursor pointing to it of kind CXCursor_ObjCCategoryImplDecl: How can I get the name of the interface being extended here? clang_getCursorDisplayName only gives me the category name, but I also need the original name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:as-a-librarylibclang and C++ APIobjective-cquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions