Skip to content

Commit 65c0134

Browse files
committed
[clang][deps] NFC: Make PCH test more debuggable
Overwriting CDB files made it difficult to debug earlier clang-scan-deps invocations. This commit creates separate files for each.
1 parent 34f1439 commit 65c0134

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clang/test/ClangScanDeps/modules-pch.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
// Scan dependencies of the PCH:
99
//
10-
// RUN: sed "s|DIR|%/t|g" %S/Inputs/modules-pch/cdb_pch.json > %t/cdb.json
11-
// RUN: clang-scan-deps -compilation-database %t/cdb.json -format experimental-full \
10+
// RUN: sed "s|DIR|%/t|g" %S/Inputs/modules-pch/cdb_pch.json > %t/cdb_pch.json
11+
// RUN: clang-scan-deps -compilation-database %t/cdb_pch.json -format experimental-full \
1212
// RUN: -module-files-dir %t/build > %t/result_pch.json
1313
// RUN: cat %t/result_pch.json | sed 's:\\\\\?:/:g' | FileCheck %s -DPREFIX=%/t -check-prefix=CHECK-PCH
1414
//
@@ -94,8 +94,8 @@
9494

9595
// Scan dependencies of the TU:
9696
//
97-
// RUN: sed "s|DIR|%/t|g" %S/Inputs/modules-pch/cdb_tu.json > %t/cdb.json
98-
// RUN: clang-scan-deps -compilation-database %t/cdb.json -format experimental-full \
97+
// RUN: sed "s|DIR|%/t|g" %S/Inputs/modules-pch/cdb_tu.json > %t/cdb_tu.json
98+
// RUN: clang-scan-deps -compilation-database %t/cdb_tu.json -format experimental-full \
9999
// RUN: -module-files-dir %t/build > %t/result_tu.json
100100
// RUN: cat %t/result_tu.json | sed 's:\\\\\?:/:g' | FileCheck %s -DPREFIX=%/t -check-prefix=CHECK-TU
101101
//
@@ -142,8 +142,8 @@
142142

143143
// Scan dependencies of the TU that has common modules with the PCH:
144144
//
145-
// RUN: sed "s|DIR|%/t|g" %S/Inputs/modules-pch/cdb_tu_with_common.json > %t/cdb.json
146-
// RUN: clang-scan-deps -compilation-database %t/cdb.json -format experimental-full \
145+
// RUN: sed "s|DIR|%/t|g" %S/Inputs/modules-pch/cdb_tu_with_common.json > %t/cdb_tu_with_common.json
146+
// RUN: clang-scan-deps -compilation-database %t/cdb_tu_with_common.json -format experimental-full \
147147
// RUN: -module-files-dir %t/build > %t/result_tu_with_common.json
148148
// RUN: cat %t/result_tu_with_common.json | sed 's:\\\\\?:/:g' | FileCheck %s -DPREFIX=%/t -check-prefix=CHECK-TU-WITH-COMMON
149149
//

0 commit comments

Comments
 (0)