Skip to content

[clang][modules][deps]Remove -F option from test for clang-scan-deps #141614

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions clang/test/ClangScanDeps/modules-pch-common-stale.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module mod_tu_extra { header "mod_tu_extra.h" }

// Clean: scan the PCH.
// RUN: clang-scan-deps -format experimental-full -o %t/deps_pch_clean.json -- \
// RUN: %clang -x c-header %t/prefix.h -o %t/prefix.h.pch -F %t \
// RUN: %clang -x c-header %t/prefix.h -o %t/prefix.h.pch \
// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache

// Clean: build the PCH.
Expand All @@ -38,7 +38,7 @@ module mod_tu_extra { header "mod_tu_extra.h" }

// Clean: scan the TU.
// RUN: clang-scan-deps -format experimental-full -o %t/deps_tu_clean.json -- \
// RUN: %clang -c %t/tu.c -o %t/tu.o -include %t/prefix.h -F %t \
// RUN: %clang -c %t/tu.c -o %t/tu.o -include %t/prefix.h \
// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache
// RUN: cat %t/deps_tu_clean.json | sed 's:\\\\\?:/:g' | FileCheck %s --check-prefix=CHECK-TU-CLEAN -DPREFIX=%/t
// CHECK-TU-CLEAN: {
Expand Down Expand Up @@ -94,7 +94,7 @@ module mod_tu_extra { header "mod_tu_extra.h" }

// Incremental: scan the PCH.
// RUN: clang-scan-deps -format experimental-full -o %t/deps_pch_incremental.json -- \
// RUN: %clang -x c-header %t/prefix.h -o %t/prefix.h.pch -F %t \
// RUN: %clang -x c-header %t/prefix.h -o %t/prefix.h.pch \
// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache

// Incremental: build the PCH.
Expand All @@ -107,7 +107,7 @@ module mod_tu_extra { header "mod_tu_extra.h" }
// TU that depend on modules imported from the PCH and discover the
// new dependency on 'mod_tu_extra'.
// RUN: clang-scan-deps -format experimental-full -o %t/deps_tu_incremental.json -- \
// RUN: %clang -c %t/tu.c -o %t/tu.o -include %t/prefix.h -F %t \
// RUN: %clang -c %t/tu.c -o %t/tu.o -include %t/prefix.h \
// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache
// RUN: cat %t/deps_tu_incremental.json | sed 's:\\\\\?:/:g' | FileCheck %s --check-prefix=CHECK-TU-INCREMENTAL -DPREFIX=%/t
// CHECK-TU-INCREMENTAL: {
Expand Down