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
68 lines
1.9 KiB
Objective-C
68 lines
1.9 KiB
Objective-C
// RUN: rm -rf %t
|
|
// RUN: split-file %s %t
|
|
// RUN: sed -e "s|DIR|%/t|g" %t/cdb1.json.template > %t/cdb1.json
|
|
|
|
// RUN: clang-scan-deps -compilation-database %t/cdb1.json -format experimental-full > %t/result1.txt
|
|
// RUN: FileCheck %s -input-file %t/result1.txt
|
|
|
|
// This tests that codegen option that do not affect the AST or generation of a
|
|
// module are removed. It also tests that the optimization options that affect
|
|
// the AST are not reset to -O0.
|
|
|
|
// CHECK: "modules": [
|
|
// CHECK-NEXT: {
|
|
// CHECK: "command-line": [
|
|
// CHECK-NOT: "-O0"
|
|
// CHECK-NOT: "-flto"
|
|
// CHECK-NOT: "-fno-autolink"
|
|
// CHECK-NOT: "-mrelax-relocations=no"
|
|
// CHECK-NOT: "-mspeculative-load-hardening"
|
|
// CHECK: ]
|
|
// CHECK: "name": "A"
|
|
// CHECK: }
|
|
// CHECK-NOT: "name": "A"
|
|
// CHECK: "translation-units"
|
|
|
|
//--- cdb1.json.template
|
|
[
|
|
{
|
|
"directory": "DIR",
|
|
"command": "clang -Imodules/A -fmodules -fmodules-cache-path=DIR/module-cache -fimplicit-modules -O2 -flto -fno-autolink -Xclang -mrelax-relocations=no -fsyntax-only DIR/t1.m",
|
|
"file": "DIR/t1.m"
|
|
},
|
|
{
|
|
"directory": "DIR",
|
|
"command": "clang -Imodules/A -fmodules -fmodules-cache-path=DIR/module-cache -fimplicit-modules -O2 -flto=thin -fautolink -fsyntax-only DIR/t2.m",
|
|
"file": "DIR/t2.m"
|
|
},
|
|
{
|
|
"directory": "DIR",
|
|
"command": "clang -Imodules/A -fmodules -fmodules-cache-path=DIR/module-cache -fimplicit-modules -O2 -flto=full -fsyntax-only DIR/t3.m",
|
|
"file": "DIR/t2.m"
|
|
}
|
|
{
|
|
"directory": "DIR",
|
|
"command": "clang -Imodules/A -fmodules -fmodules-cache-path=DIR/module-cache -fimplicit-modules -O2 -mspeculative-load-hardening -fsyntax-only DIR/t3.m",
|
|
"file": "DIR/t3.m"
|
|
}
|
|
]
|
|
|
|
//--- modules/A/module.modulemap
|
|
|
|
module A {
|
|
umbrella header "A.h"
|
|
}
|
|
|
|
//--- modules/A/A.h
|
|
|
|
typedef int A_t;
|
|
|
|
//--- t1.m
|
|
@import A;
|
|
|
|
//--- t2.m
|
|
@import A;
|
|
|
|
//--- t3.m
|
|
@import A;
|