File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
lib/Tooling/DependencyScanning Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -616,6 +616,9 @@ void ModuleDepCollectorPP::EndOfMainFile() {
616616 if (!MDC.ScanInstance .getPreprocessorOpts ().ImplicitPCHInclude .empty ())
617617 MDC.addFileDep (MDC.ScanInstance .getPreprocessorOpts ().ImplicitPCHInclude );
618618
619+ for (StringRef VFS : MDC.ScanInstance .getHeaderSearchOpts ().VFSOverlayFiles )
620+ MDC.addFileDep (VFS);
621+
619622 for (const Module *M :
620623 MDC.ScanInstance .getPreprocessor ().getAffectingClangModules ())
621624 if (!MDC.isPrebuiltModule (M))
Original file line number Diff line number Diff line change 7979// CHECK: ],
8080// CHECK: "file-deps": [
8181// CHECK-NEXT: "[[PREFIX]]/tu.m",
82- // CHECK-NEXT: "[[PREFIX]]/shared/H.h"
82+ // CHECK-NEXT: "[[PREFIX]]/shared/H.h",
83+ // CHECK-NEXT: "[[PREFIX]]/overlay.json"
8384// CHECK-NEXT: ],
8485// CHECK-NEXT: "input-file": "[[PREFIX]]/tu.m"
8586// CHECK-NEXT: }
You can’t perform that action at this time.
0 commit comments