3 // RUN: split-file %s %t
4 // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement}@g" \
5 // RUN: %t/reference.output.json.in >> %t/reference.output.json
6 // RUN: %clang_cc1 %t/main.c -emit-symbol-graph --pretty-sgf \
7 // RUN: --symbol-graph-dir=%t/SymbolGraphs --product-name=basicfile -triple=x86_64-apple-macosx12.0.0
9 // Generator version is not consistent across test runs, normalize it.
10 // RUN: sed -e "s@\"generator\": \".*\"@\"generator\": \"?\"@g" \
11 // RUN: %t/SymbolGraphs/main.c.symbols.json >> %t/output-normalized.json
12 // RUN: diff %t/reference.output.json %t/output-normalized.json
15 // CHECK-NOT: warning:
24 //--- reference.output.json.in
37 "architecture": "x86_64",
47 "accessLevel": "public",
48 "declarationFragments": [
50 "kind": "typeIdentifier",
51 "preciseIdentifier": "c:I",
67 "functionSignature": {
70 "kind": "typeIdentifier",
71 "preciseIdentifier": "c:I",
77 "interfaceLanguage": "c",
78 "precise": "c:@F@main"
81 "displayName": "Function",
82 "identifier": "c.func"
89 "uri": "file://INPUT_DIR/main.c"
100 "kind": "identifier",