summaryrefslogtreecommitdiffstats
path: root/pp-trace
diff options
context:
space:
mode:
authorNikola Smiljanic <popizdeh@gmail.com>2015-05-12 11:48:21 +0000
committerNikola Smiljanic <popizdeh@gmail.com>2015-05-12 11:48:21 +0000
commit1562645508a0fbe62b3717f36c52c7c991d9b7fc (patch)
tree37b0d458cc04774ce7d0f79ad307da5838b9b04d /pp-trace
parentb585e941e79ca8d39998bd9da37c1c254e8210f1 (diff)
Fix misleading parameter name for PPCallbacks::FileSkipped.
Patch thanks to Vladimir Voskresensky. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@237116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'pp-trace')
-rw-r--r--pp-trace/PPCallbacksTracker.cpp4
-rw-r--r--pp-trace/PPCallbacksTracker.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/pp-trace/PPCallbacksTracker.cpp b/pp-trace/PPCallbacksTracker.cpp
index e3ec99cf..86a46394 100644
--- a/pp-trace/PPCallbacksTracker.cpp
+++ b/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/pp-trace/PPCallbacksTracker.h b/pp-trace/PPCallbacksTracker.h
index dfc56643..d051bc0d 100644
--- a/pp-trace/PPCallbacksTracker.h
+++ b/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,