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
58 lines
3.4 KiB
C++
58 lines
3.4 KiB
C++
// RUN: rm -rf %t.dir
|
|
// RUN: rm -rf %t.cdb
|
|
// RUN: rm -rf %t_clangcl.cdb
|
|
// RUN: rm -rf %t.module-cache
|
|
// RUN: rm -rf %t.module-cache_clangcl
|
|
// RUN: mkdir -p %t.dir
|
|
// RUN: cp %s %t.dir/modules_cdb_input.cpp
|
|
// RUN: cp %s %t.dir/modules_cdb_input2.cpp
|
|
// RUN: mkdir %t.dir/Inputs
|
|
// RUN: cp %S/Inputs/header.h %t.dir/Inputs/header.h
|
|
// RUN: cp %S/Inputs/header2.h %t.dir/Inputs/header2.h
|
|
// RUN: cp %S/Inputs/module.modulemap %t.dir/Inputs/module.modulemap
|
|
// RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/modules_cdb.json > %t.cdb
|
|
// RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/modules_cdb_clangcl.json > %t_clangcl.cdb
|
|
//
|
|
// RUN: clang-scan-deps -compilation-database %t.cdb -j 1 -mode preprocess-dependency-directives | \
|
|
// RUN: FileCheck --check-prefixes=CHECK1,CHECK2,CHECK2NO%if system-darwin && target={{.*}}-{{darwin|macos}}{{.*}} %{,CHECK1-DARWIN,CHECK2-DARWIN %} %else %{,CHECK2-NON-DARWIN %} %s
|
|
// RUN: clang-scan-deps -compilation-database %t_clangcl.cdb -j 1 -mode preprocess-dependency-directives | \
|
|
// RUN: FileCheck --check-prefixes=CHECK1,CHECK2,CHECK2NO,CHECK2-NON-DARWIN %s
|
|
//
|
|
// The output order is non-deterministic when using more than one thread,
|
|
// so check the output using two runs. Note that the 'NOT' check is not used
|
|
// as it might fail if the results for `modules_cdb_input.cpp` are reported before
|
|
// `modules_cdb_input2.cpp`.
|
|
//
|
|
// RUN: clang-scan-deps -compilation-database %t.cdb -j 2 -mode preprocess-dependency-directives | \
|
|
// RUN: FileCheck --check-prefixes=CHECK1%if system-darwin && target={{.*}}-{{darwin|macos}}{{.*}} %{,CHECK1-DARWIN %} %s
|
|
// RUN: clang-scan-deps -compilation-database %t_clangcl.cdb -j 2 -mode preprocess-dependency-directives | \
|
|
// RUN: FileCheck --check-prefix=CHECK1 %s
|
|
// RUN: clang-scan-deps -compilation-database %t.cdb -j 2 -mode preprocess | \
|
|
// RUN: FileCheck --check-prefixes=CHECK1%if system-darwin && target={{.*}}-{{darwin|macos}}{{.*}} %{,CHECK1-DARWIN %} %s
|
|
// RUN: clang-scan-deps -compilation-database %t_clangcl.cdb -j 2 -mode preprocess | \
|
|
// RUN: FileCheck --check-prefix=CHECK1 %s
|
|
// RUN: clang-scan-deps -compilation-database %t.cdb -j 2 -mode preprocess-dependency-directives | \
|
|
// RUN: FileCheck --check-prefixes=CHECK2%if system-darwin && target={{.*}}-{{darwin|macos}}{{.*}} %{,CHECK2-DARWIN %} %else %{,CHECK2-NON-DARWIN %} %s
|
|
// RUN: clang-scan-deps -compilation-database %t_clangcl.cdb -j 2 -mode preprocess-dependency-directives | \
|
|
// RUN: FileCheck --check-prefixes=CHECK2,CHECK2-NON-DARWIN %s
|
|
// RUN: clang-scan-deps -compilation-database %t.cdb -j 2 -mode preprocess | \
|
|
// RUN: FileCheck --check-prefixes=CHECK2%if system-darwin && target={{.*}}-{{darwin|macos}}{{.*}} %{,CHECK2-DARWIN %} %else %{,CHECK2-NON-DARWIN %} %s
|
|
// RUN: clang-scan-deps -compilation-database %t_clangcl.cdb -j 2 -mode preprocess | \
|
|
// RUN: FileCheck --check-prefixes=CHECK2,CHECK2-NON-DARWIN %s
|
|
|
|
#include "header.h"
|
|
|
|
// CHECK1: modules_cdb_input2.o:
|
|
// CHECK1-DARWIN-NEXT: SDKSettings.json
|
|
// CHECK1-NEXT: modules_cdb_input2.cpp
|
|
// CHECK1-NEXT: Inputs{{/|\\}}module.modulemap
|
|
// CHECK1-NEXT: Inputs{{/|\\}}header2.h
|
|
// CHECK1: Inputs{{/|\\}}header.h
|
|
|
|
// CHECK2-NON-DARWIN: {{(modules_cdb_input)|(a)|(b)}}.o:
|
|
// CHECK2-DARWIN: {{(modules_cdb_input)|(a)|(b)}}.o:{{.*[[:space:]].*}}SDKSettings.json
|
|
// CHECK2-NEXT: modules_cdb_input.cpp
|
|
// CHECK2-NEXT: Inputs{{/|\\}}module.modulemap
|
|
// CHECK2-NEXT: Inputs{{/|\\}}header.h
|
|
// CHECK2NO-NOT: header2
|