Skip to content

Extend type system to support Objective-C types #420

Description

@plafosse
No description provided.

Activity

  1. added
    Effort: Medium
    Impact: Medium
    on Jan 13, 2021
  2. added
    Component: Core
    on Jun 12, 2023
  3. marked Parse objective-c headers #7935 as a duplicate of this issue on Feb 3, 2026
  4. emesare commented on Feb 3, 2026

    @emesare
    Member

    We bundle clang with our product to produce types from c and c++ headers, but we do not support objective c type information. The current clang parser forces to be parsed as c++17 so we will need to relax that.

    Here is a snippet:

    #import <Foundation/Foundation.h>
    
    @interface BaseProvider : NSObject {
        int _internalId;
        BOOL _isActive;
    }
    @property (nonatomic, copy) NSString *providerName;
    @end

    Clang Arguments:

    -x objective-c -target arm64-apple-darwin -framework Foundation -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -ILibrary/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
    

    I think we could do with trying to do best effort parsing of the types (related issue for C++), even if our type model doesnt natively support whatever objective-c nonsense directly.

    Currently we have a separate python script that parses out objective-c information (see darwin_typelib) for type libraries, im sure whatever conversions are occurring there would be useful as a reference.

  5. added
    Component: Type Parser
    Core: Types
    Language: Objective-C
    on Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CoreComponent: Type ParserCore: TypesEffort: MediumImpact: MediumLanguage: Objective-C

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions