For the FileChanged Preprocessor callback, when exiting a file, pass its FileID.
llvm-svn: 141681
This commit is contained in:
@@ -52,7 +52,8 @@ public:
|
||||
AddMissingHeaderDeps(Opts.AddMissingHeaderDeps) {}
|
||||
|
||||
virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason,
|
||||
SrcMgr::CharacteristicKind FileType);
|
||||
SrcMgr::CharacteristicKind FileType,
|
||||
FileID PrevFID);
|
||||
virtual void InclusionDirective(SourceLocation HashLoc,
|
||||
const Token &IncludeTok,
|
||||
StringRef FileName,
|
||||
@@ -107,7 +108,8 @@ bool DependencyFileCallback::FileMatchesDepCriteria(const char *Filename,
|
||||
|
||||
void DependencyFileCallback::FileChanged(SourceLocation Loc,
|
||||
FileChangeReason Reason,
|
||||
SrcMgr::CharacteristicKind FileType) {
|
||||
SrcMgr::CharacteristicKind FileType,
|
||||
FileID PrevFID) {
|
||||
if (Reason != PPCallbacks::EnterFile)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user