Debian Codegraph @

clang/test/ExtractAPI/objc_category.m

raw
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -extract-api --pretty-sgf --emit-sgf-symbol-labels-for-testing \
3 // RUN: -triple arm64-apple-macosx -x objective-c-header %s -o - -verify | FileCheck %s
4
5 @protocol Protocol
6 @end
7
8 @interface Interface
9 @end
10
11 @interface Interface (Category) <Protocol>
12 // CHECK-DAG: "!testRelLabel": "conformsTo $ c:objc(cs)Interface $ c:objc(pl)Protocol"
13 @property int Property;
14 // CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(cs)Interface(py)Property $ c:objc(cs)Interface"
15 - (void)InstanceMethod;
16 // CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(cs)Interface(im)InstanceMethod $ c:objc(cs)Interface"
17 + (void)ClassMethod;
18 // CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(cs)Interface(cm)ClassMethod $ c:objc(cs)Interface"
19 @end
20
21 // expected-no-diagnostics