kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/cxx/extractor/testdata/objc_lib.m (about)

     1  // Checks that Objective-C classes are declared and defined.
     2  
     3  // Not needed but tests that we are able to correctly find it
     4  #import <Availability.h>
     5  
     6  #import <Foundation/Foundation.h>
     7  
     8  //- @Box defines/binding BoxIface
     9  //- BoxIface.node/kind record
    10  //- BoxIface.subkind class
    11  //- BoxIface.complete incomplete
    12  @interface Box : NSObject
    13  @end
    14  
    15  //- @Box defines/binding BoxImpl
    16  //- BoxImpl.node/kind record
    17  //- BoxImpl.subkind class
    18  //- BoxImpl.complete definition
    19  @implementation Box
    20  @end
    21  
    22  //- BoxIface named BoxName
    23  //- BoxImpl named BoxName
    24  
    25  int main(int argc, char **argv) {
    26    return 0;
    27  }
    28