[clang] Reland: "[Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (#142409)" (PR #143614)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 10 20:59:40 PDT 2025


================
@@ -0,0 +1,19 @@
+// RUN: rm -rf %t
+// RUN: mkdir -p %t
+
+// Create PCH without -ignore-pch.
+// RUN: %clang -x c++-header %S/../Modules/Inputs/codegen-flags/foo.h -### 2>&1 | FileCheck %s -check-prefix=CHECK-EMIT-PCH
----------------
MaskRay wrote:

`%S/../` references auxiliary file from a different test directory. We typically avoid doing this,,, though Index/ and Headers/ seem to have violations.

https://github.com/llvm/llvm-project/pull/143614


More information about the cfe-commits mailing list