2 // RUN: split-file %s %t
3 // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement}@g" \
4 // RUN: %t/reference.output.json.in >> %t/reference.output.json
5 // RUN: %clang_cc1 -extract-api --pretty-sgf -triple arm64-apple-macosx \
6 // RUN: -x c++-header %t/input.h -o %t/output.json -verify
8 // Generator version is not consistent across test runs, normalize it.
9 // RUN: sed -e "s@\"generator\": \".*\"@\"generator\": \"?\"@g" \
10 // RUN: %t/output.json >> %t/output-normalized.json
11 // RUN: diff %t/reference.output.json %t/output-normalized.json
16 class Bar
: public Foo
{};
17 /// expected-no-diagnostics
19 //--- reference.output.json.in
32 "architecture": "arm64",
46 "kind": "inheritsFrom",
49 "targetFallback": "Foo"
54 "accessLevel": "public",
55 "declarationFragments": [
74 "interfaceLanguage": "c++",
78 "displayName": "Class",
79 "identifier": "c++.class"
86 "uri": "file://INPUT_DIR/input.h"
108 "accessLevel": "public",
109 "declarationFragments": [
119 "kind": "identifier",
128 "interfaceLanguage": "c++",
129 "precise": "c:@S@Bar"
132 "displayName": "Class",
133 "identifier": "c++.class"
140 "uri": "file://INPUT_DIR/input.h"
145 "kind": "identifier",
151 "kind": "identifier",