[clang] [clang-tools-extra] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 14 08:39:27 PST 2025
================
@@ -33,7 +33,7 @@
// RUN: clang-scan-deps -compilation-database %t/cdb.json -mode preprocess | FileCheck %s
// CHECK: tu.c
-// CHECK-NEXT: header1.h
-// CHECK-NEXT: header2.h
-// CHECK-NEXT: header3.h
-// CHECK-NEXT: header4.h
+// CHECK-NOT: header1.h
----------------
MaskRay wrote:
I think skipping header1.h is undesired. header1.h is not inside `#if 0 ... #endif` . Whether the file is present affects the build.
https://github.com/llvm/llvm-project/pull/120673
More information about the cfe-commits
mailing list