[clang] [clang][deps] Use `ModuleDepCollector` for Make output (PR #182063)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 18 09:03:41 PST 2026


================
@@ -65,7 +65,8 @@ module Dependency { header "dependency.h" }
 // CHECK-NEXT:           "command-line": [
 // CHECK:                ],
 // CHECK:                "file-deps": [
-// CHECK-NEXT:             "[[PREFIX]]/tu.c"
+// CHECK-NEXT:             "[[PREFIX]]/tu.c",
+// CHECK-NEXT:             "[[PREFIX]]/frameworks/FW.framework/PrivateHeaders/B.h"
----------------
jansvoboda11 wrote:

This was added because we now recognize `#if __has_include()` in the main TU. Note that we still don't recognize this in modules, because dependency collection there works on the `SourceManager` level, so it will only pick up files that were actually fully `#include`d. This is known pre-existing behavior.

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


More information about the cfe-commits mailing list