[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


================
@@ -549,6 +549,13 @@ void ModuleDepCollectorPP::LexedFileChanged(FileID FID,
     MDC.addFileDep(llvm::sys::path::remove_leading_dotslash(*Filename));
 }
 
+void ModuleDepCollectorPP::HasInclude(SourceLocation Loc, StringRef FileName,
+                                      bool IsAngled, OptionalFileEntryRef File,
+                                      SrcMgr::CharacteristicKind FileType) {
+  if (File)
+    MDC.addFileDep(File->getName());
+}
----------------
jansvoboda11 wrote:

This was added to keep `clang/test/ClangScanDeps/has_include_if_elif.cpp` passing.

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


More information about the cfe-commits mailing list