mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-13 13:45:16 +00:00
Fix misleading parameter name for PPCallbacks::FileSkipped.
Patch thanks to Vladimir Voskresensky. llvm-svn: 237116
This commit is contained in:
parent
fb891fcef6
commit
90476a5d90
@ -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);
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user