CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
296 lines
6.5 KiB
C
296 lines
6.5 KiB
C
// RUN: rm -rf %t
|
|
// RUN: split-file %s %t
|
|
// RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement}@g" \
|
|
// RUN: %t/c.reference.output.json.in >> %t/c.reference.output.json
|
|
// RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement}@g" \
|
|
// RUN: %t/objc.reference.output.json.in >> %t/objc.reference.output.json
|
|
// RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement}@g" \
|
|
// RUN: %t/objcpp.reference.output.json.in >> %t/objcpp.reference.output.json
|
|
|
|
// RUN: %clang_cc1 -extract-api --pretty-sgf -x c-header -triple arm64-apple-macosx \
|
|
// RUN: %t/c.h -o %t/c.output.json | FileCheck -allow-empty %s
|
|
// RUN: %clang_cc1 -extract-api --pretty-sgf -x objective-c-header -triple arm64-apple-macosx \
|
|
// RUN: %t/objc.h -o %t/objc.output.json | FileCheck -allow-empty %s
|
|
// RUN: %clang_cc1 -extract-api --pretty-sgf -x objective-c++-header -triple arm64-apple-macosx \
|
|
// RUN: %t/objcpp.h -o %t/objcpp.output.json | FileCheck -allow-empty %s
|
|
|
|
// Generator version is not consistent across test runs, normalize it.
|
|
// RUN: sed -e "s@\"generator\": \".*\"@\"generator\": \"?\"@g" \
|
|
// RUN: %t/c.output.json >> %t/c.output-normalized.json
|
|
// RUN: sed -e "s@\"generator\": \".*\"@\"generator\": \"?\"@g" \
|
|
// RUN: %t/objc.output.json >> %t/objc.output-normalized.json
|
|
// RUN: sed -e "s@\"generator\": \".*\"@\"generator\": \"?\"@g" \
|
|
// RUN: %t/objcpp.output.json >> %t/objcpp.output-normalized.json
|
|
|
|
// RUN: diff %t/c.reference.output.json %t/c.output-normalized.json
|
|
// RUN: diff %t/objc.reference.output.json %t/objc.output-normalized.json
|
|
// RUN: diff %t/objcpp.reference.output.json %t/objcpp.output-normalized.json
|
|
|
|
// CHECK-NOT: error:
|
|
// CHECK-NOT: warning:
|
|
|
|
//--- c.h
|
|
char c;
|
|
///expected-no-diagnostics
|
|
|
|
//--- objc.h
|
|
char objc;
|
|
///expected-no-diagnostics
|
|
|
|
//--- objcpp.h
|
|
char objcpp;
|
|
///expected-no-diagnostics
|
|
|
|
//--- c.reference.output.json.in
|
|
{
|
|
"metadata": {
|
|
"formatVersion": {
|
|
"major": 0,
|
|
"minor": 5,
|
|
"patch": 3
|
|
},
|
|
"generator": "?"
|
|
},
|
|
"module": {
|
|
"name": "",
|
|
"platform": {
|
|
"architecture": "arm64",
|
|
"operatingSystem": {
|
|
"minimumVersion": {
|
|
"major": 11,
|
|
"minor": 0,
|
|
"patch": 0
|
|
},
|
|
"name": "macosx"
|
|
},
|
|
"vendor": "apple"
|
|
}
|
|
},
|
|
"relationships": [],
|
|
"symbols": [
|
|
{
|
|
"accessLevel": "public",
|
|
"declarationFragments": [
|
|
{
|
|
"kind": "typeIdentifier",
|
|
"preciseIdentifier": "c:C",
|
|
"spelling": "char"
|
|
},
|
|
{
|
|
"kind": "text",
|
|
"spelling": " "
|
|
},
|
|
{
|
|
"kind": "identifier",
|
|
"spelling": "c"
|
|
},
|
|
{
|
|
"kind": "text",
|
|
"spelling": ";"
|
|
}
|
|
],
|
|
"identifier": {
|
|
"interfaceLanguage": "c",
|
|
"precise": "c:@c"
|
|
},
|
|
"kind": {
|
|
"displayName": "Global Variable",
|
|
"identifier": "c.var"
|
|
},
|
|
"location": {
|
|
"position": {
|
|
"character": 5,
|
|
"line": 0
|
|
},
|
|
"uri": "file://INPUT_DIR/c.h"
|
|
},
|
|
"names": {
|
|
"navigator": [
|
|
{
|
|
"kind": "identifier",
|
|
"spelling": "c"
|
|
}
|
|
],
|
|
"subHeading": [
|
|
{
|
|
"kind": "identifier",
|
|
"spelling": "c"
|
|
}
|
|
],
|
|
"title": "c"
|
|
},
|
|
"pathComponents": [
|
|
"c"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
//--- objc.reference.output.json.in
|
|
{
|
|
"metadata": {
|
|
"formatVersion": {
|
|
"major": 0,
|
|
"minor": 5,
|
|
"patch": 3
|
|
},
|
|
"generator": "?"
|
|
},
|
|
"module": {
|
|
"name": "",
|
|
"platform": {
|
|
"architecture": "arm64",
|
|
"operatingSystem": {
|
|
"minimumVersion": {
|
|
"major": 11,
|
|
"minor": 0,
|
|
"patch": 0
|
|
},
|
|
"name": "macosx"
|
|
},
|
|
"vendor": "apple"
|
|
}
|
|
},
|
|
"relationships": [],
|
|
"symbols": [
|
|
{
|
|
"accessLevel": "public",
|
|
"declarationFragments": [
|
|
{
|
|
"kind": "typeIdentifier",
|
|
"preciseIdentifier": "c:C",
|
|
"spelling": "char"
|
|
},
|
|
{
|
|
"kind": "text",
|
|
"spelling": " "
|
|
},
|
|
{
|
|
"kind": "identifier",
|
|
"spelling": "objc"
|
|
},
|
|
{
|
|
"kind": "text",
|
|
"spelling": ";"
|
|
}
|
|
],
|
|
"identifier": {
|
|
"interfaceLanguage": "objective-c",
|
|
"precise": "c:@objc"
|
|
},
|
|
"kind": {
|
|
"displayName": "Global Variable",
|
|
"identifier": "objective-c.var"
|
|
},
|
|
"location": {
|
|
"position": {
|
|
"character": 5,
|
|
"line": 0
|
|
},
|
|
"uri": "file://INPUT_DIR/objc.h"
|
|
},
|
|
"names": {
|
|
"navigator": [
|
|
{
|
|
"kind": "identifier",
|
|
"spelling": "objc"
|
|
}
|
|
],
|
|
"subHeading": [
|
|
{
|
|
"kind": "identifier",
|
|
"spelling": "objc"
|
|
}
|
|
],
|
|
"title": "objc"
|
|
},
|
|
"pathComponents": [
|
|
"objc"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
//--- objcpp.reference.output.json.in
|
|
{
|
|
"metadata": {
|
|
"formatVersion": {
|
|
"major": 0,
|
|
"minor": 5,
|
|
"patch": 3
|
|
},
|
|
"generator": "?"
|
|
},
|
|
"module": {
|
|
"name": "",
|
|
"platform": {
|
|
"architecture": "arm64",
|
|
"operatingSystem": {
|
|
"minimumVersion": {
|
|
"major": 11,
|
|
"minor": 0,
|
|
"patch": 0
|
|
},
|
|
"name": "macosx"
|
|
},
|
|
"vendor": "apple"
|
|
}
|
|
},
|
|
"relationships": [],
|
|
"symbols": [
|
|
{
|
|
"accessLevel": "public",
|
|
"declarationFragments": [
|
|
{
|
|
"kind": "typeIdentifier",
|
|
"preciseIdentifier": "c:C",
|
|
"spelling": "char"
|
|
},
|
|
{
|
|
"kind": "text",
|
|
"spelling": " "
|
|
},
|
|
{
|
|
"kind": "identifier",
|
|
"spelling": "objcpp"
|
|
},
|
|
{
|
|
"kind": "text",
|
|
"spelling": ";"
|
|
}
|
|
],
|
|
"identifier": {
|
|
"interfaceLanguage": "objective-c++",
|
|
"precise": "c:@objcpp"
|
|
},
|
|
"kind": {
|
|
"displayName": "Global Variable",
|
|
"identifier": "objective-c++.var"
|
|
},
|
|
"location": {
|
|
"position": {
|
|
"character": 5,
|
|
"line": 0
|
|
},
|
|
"uri": "file://INPUT_DIR/objcpp.h"
|
|
},
|
|
"names": {
|
|
"navigator": [
|
|
{
|
|
"kind": "identifier",
|
|
"spelling": "objcpp"
|
|
}
|
|
],
|
|
"subHeading": [
|
|
{
|
|
"kind": "identifier",
|
|
"spelling": "objcpp"
|
|
}
|
|
],
|
|
"title": "objcpp"
|
|
},
|
|
"pathComponents": [
|
|
"objcpp"
|
|
]
|
|
}
|
|
]
|
|
}
|