|
@@ -185,6 +185,10 @@ public:
|
|
void FileChanged(SourceLocation Loc, FileChangeReason Reason,
|
|
void FileChanged(SourceLocation Loc, FileChangeReason Reason,
|
|
SrcMgr::CharacteristicKind FileType,
|
|
SrcMgr::CharacteristicKind FileType,
|
|
FileID PrevFID) override;
|
|
FileID PrevFID) override;
|
|
|
|
+
|
|
|
|
+ void FileSkipped(const FileEntry &SkippedFile, const Token &FilenameTok,
|
|
|
|
+ SrcMgr::CharacteristicKind FileType) override;
|
|
|
|
+
|
|
void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
|
|
void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
|
|
StringRef FileName, bool IsAngled,
|
|
StringRef FileName, bool IsAngled,
|
|
CharSourceRange FilenameRange, const FileEntry *File,
|
|
CharSourceRange FilenameRange, const FileEntry *File,
|
|
@@ -291,6 +295,16 @@ void DFGImpl::FileChanged(SourceLocation Loc,
|
|
AddFilename(llvm::sys::path::remove_leading_dotslash(Filename));
|
|
AddFilename(llvm::sys::path::remove_leading_dotslash(Filename));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+void DFGImpl::FileSkipped(const FileEntry &SkippedFile,
|
|
|
|
+ const Token &FilenameTok,
|
|
|
|
+ SrcMgr::CharacteristicKind FileType) {
|
|
|
|
+ StringRef Filename = SkippedFile.getName();
|
|
|
|
+ if (!FileMatchesDepCriteria(Filename.data(), FileType))
|
|
|
|
+ return;
|
|
|
|
+
|
|
|
|
+ AddFilename(llvm::sys::path::remove_leading_dotslash(Filename));
|
|
|
|
+}
|
|
|
|
+
|
|
void DFGImpl::InclusionDirective(SourceLocation HashLoc,
|
|
void DFGImpl::InclusionDirective(SourceLocation HashLoc,
|
|
const Token &IncludeTok,
|
|
const Token &IncludeTok,
|
|
StringRef FileName,
|
|
StringRef FileName,
|