diff options
-rw-r--r-- | clang-tools-extra/pp-trace/PPCallbacksTracker.cpp | 4 | ||||
-rw-r--r-- | clang-tools-extra/pp-trace/PPCallbacksTracker.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/pp-trace/PPCallbacksTracker.cpp b/clang-tools-extra/pp-trace/PPCallbacksTracker.cpp index e3ec99cfc4c..86a46394b9c 100644 --- a/clang-tools-extra/pp-trace/PPCallbacksTracker.cpp +++ b/clang-tools-extra/pp-trace/PPCallbacksTracker.cpp @@ -111,11 +111,11 @@ void PPCallbacksTracker::FileChanged( // Callback invoked whenever a source file is skipped as the result // of header guard optimization. void -PPCallbacksTracker::FileSkipped(const clang::FileEntry &ParentFile, +PPCallbacksTracker::FileSkipped(const clang::FileEntry &SkippedFile, const clang::Token &FilenameTok, clang::SrcMgr::CharacteristicKind FileType) { beginCallback("FileSkipped"); - appendArgument("ParentFile", &ParentFile); + appendArgument("ParentFile", &SkippedFile); appendArgument("FilenameTok", FilenameTok); appendArgument("FileType", FileType, CharacteristicKindStrings); } diff --git a/clang-tools-extra/pp-trace/PPCallbacksTracker.h b/clang-tools-extra/pp-trace/PPCallbacksTracker.h index dfc56643c9e..d051bc0d88f 100644 --- a/clang-tools-extra/pp-trace/PPCallbacksTracker.h +++ b/clang-tools-extra/pp-trace/PPCallbacksTracker.h @@ -84,7 +84,7 @@ public: clang::PPCallbacks::FileChangeReason Reason, clang::SrcMgr::CharacteristicKind FileType, clang::FileID PrevFID = clang::FileID()) override; - void FileSkipped(const clang::FileEntry &ParentFile, + void FileSkipped(const clang::FileEntry &SkippedFile, const clang::Token &FilenameTok, clang::SrcMgr::CharacteristicKind FileType) override; bool FileNotFound(llvm::StringRef FileName, |