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
63 lines
2.3 KiB
C
63 lines
2.3 KiB
C
// Check that the scanner produces raw ast files, even when builds produce the
|
|
// obj format, and that the scanner can read obj format from PCH and modules
|
|
// imported by PCH.
|
|
|
|
// Unsupported on AIX because we don't support the requisite "__clangast"
|
|
// section in XCOFF yet.
|
|
// UNSUPPORTED: target={{.*}}-aix{{.*}}
|
|
|
|
// RUN: rm -rf %t && mkdir %t
|
|
// RUN: cp %S/Inputs/modules-pch/* %t
|
|
|
|
// Scan dependencies of the PCH:
|
|
//
|
|
// RUN: rm -f %t/cdb_pch.json
|
|
// RUN: sed "s|DIR|%/t|g" %S/Inputs/modules-pch/cdb_pch.json > %t/cdb_pch.json
|
|
// RUN: clang-scan-deps -compilation-database %t/cdb_pch.json -format experimental-full \
|
|
// RUN: -module-files-dir %t/build -o %t/result_pch.json
|
|
|
|
// Explicitly build the PCH:
|
|
//
|
|
// RUN: %deps-to-rsp %t/result_pch.json --module-name=ModCommon1 > %t/mod_common_1.cc1.rsp
|
|
// RUN: %deps-to-rsp %t/result_pch.json --module-name=ModCommon2 > %t/mod_common_2.cc1.rsp
|
|
// RUN: %deps-to-rsp %t/result_pch.json --module-name=ModPCH > %t/mod_pch.cc1.rsp
|
|
// RUN: %deps-to-rsp %t/result_pch.json --tu-index=0 > %t/pch.rsp
|
|
//
|
|
// RUN: %clang @%t/mod_common_1.cc1.rsp
|
|
// RUN: %clang @%t/mod_common_2.cc1.rsp
|
|
// RUN: %clang @%t/mod_pch.cc1.rsp
|
|
// RUN: %clang @%t/pch.rsp
|
|
|
|
// Scan dependencies of the TU:
|
|
//
|
|
// RUN: rm -f %t/cdb_tu.json
|
|
// RUN: sed "s|DIR|%/t|g" %S/Inputs/modules-pch/cdb_tu.json > %t/cdb_tu.json
|
|
// RUN: clang-scan-deps -compilation-database %t/cdb_tu.json -format experimental-full \
|
|
// RUN: -module-files-dir %t/build > %t/result_tu.json
|
|
|
|
// Explicitly build the TU:
|
|
//
|
|
// RUN: %deps-to-rsp %t/result_tu.json --module-name=ModTU > %t/mod_tu.cc1.rsp
|
|
// RUN: %deps-to-rsp %t/result_tu.json --tu-index=0 > %t/tu.rsp
|
|
//
|
|
// RUN: %clang @%t/mod_tu.cc1.rsp
|
|
// RUN: %clang @%t/tu.rsp
|
|
|
|
// Check the module format for scanner modules:
|
|
//
|
|
// RUN: find %t/cache -name "*.pcm" -exec %clang_cc1 -module-file-info "{}" ";" | FileCheck %s -check-prefix=SCAN
|
|
// SCAN: Module format: raw
|
|
// SCAN: Module format: raw
|
|
// SCAN: Module format: raw
|
|
// SCAN: Module format: raw
|
|
|
|
// Check the module format for built modules:
|
|
//
|
|
// RUN: find %t/build -name "*.pcm" -exec %clang_cc1 -module-file-info "{}" ";" | FileCheck %s -check-prefix=BUILD
|
|
// BUILD: Module format: obj
|
|
// BUILD: Module format: obj
|
|
// BUILD: Module format: obj
|
|
// BUILD: Module format: obj
|
|
|
|
// FIXME: check pch format as well; -module-file-info does not work with a PCH
|