
Reenables b31414bf4f9898f7817a9fcf8a91f62ec26f3eaf. Also adds a new warning for missing `--symbol-graph-dir` arg when `--emit-extension-symbol-graphs` is provided. This also reverts the commit that removed.
33 lines
1.0 KiB
C
33 lines
1.0 KiB
C
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -extract-api --pretty-sgf --product-name=module -triple arm64-apple-macosx -x c-header %s -o %t/module.symbols.json -verify
|
|
|
|
// RUN: FileCheck %s --input-file %t/module.symbols.json --check-prefix METADATA
|
|
// RUN: FileCheck %s --input-file %t/module.symbols.json --check-prefix MOD
|
|
|
|
// expected-no-diagnostics
|
|
|
|
// METADATA: "metadata": {
|
|
// METADATA-NEXT: "formatVersion": {
|
|
// METADATA-NEXT: "major":
|
|
// METADATA-NEXT: "minor":
|
|
// METADATA-NEXT: "patch":
|
|
// METADATA-NEXT: },
|
|
// METADATA-NEXT: "generator":
|
|
// METADATA-NEXT: }
|
|
|
|
// MOD: "module": {
|
|
// MOD-NEXT: "name": "module",
|
|
// MOD-NEXT: "platform": {
|
|
// MOD-NEXT: "architecture": "arm64",
|
|
// MOD-NEXT: "operatingSystem": {
|
|
// MOD-NEXT: "minimumVersion": {
|
|
// MOD-NEXT: "major":
|
|
// MOD-NEXT: "minor":
|
|
// MOD-NEXT: "patch":
|
|
// MOD-NEXT: },
|
|
// MOD-NEXT: "name": "macosx"
|
|
// MOD-NEXT: },
|
|
// MOD-NEXT: "vendor": "apple"
|
|
// MOD-NEXT: }
|
|
// MOD-NEXT: }
|