forked from OSchip/llvm-project
Fix misleading parameter name for PPCallbacks::FileSkipped.
Patch thanks to Vladimir Voskresensky. llvm-svn: 237115
This commit is contained in:
parent
56807c19ac
commit
fb891fcef6
|
@ -55,11 +55,12 @@ public:
|
|||
/// \brief Callback invoked whenever a source file is skipped as the result
|
||||
/// of header guard optimization.
|
||||
///
|
||||
/// \param ParentFile The file that \#included the skipped file.
|
||||
/// \param SkippedFile The file that is skipped instead of entering \#include
|
||||
///
|
||||
/// \param FilenameTok The token in ParentFile that indicates the
|
||||
/// skipped file.
|
||||
virtual void FileSkipped(const FileEntry &ParentFile,
|
||||
/// \param FilenameTok The file name token in \#include "FileName" directive
|
||||
/// or macro expanded file name token from \#include MACRO(PARAMS) directive.
|
||||
/// Note that FilenameTok contains corresponding quotes/angles symbols.
|
||||
virtual void FileSkipped(const FileEntry &SkippedFile,
|
||||
const Token &FilenameTok,
|
||||
SrcMgr::CharacteristicKind FileType) {
|
||||
}
|
||||
|
@ -337,11 +338,11 @@ public:
|
|||
Second->FileChanged(Loc, Reason, FileType, PrevFID);
|
||||
}
|
||||
|
||||
void FileSkipped(const FileEntry &ParentFile,
|
||||
void FileSkipped(const FileEntry &SkippedFile,
|
||||
const Token &FilenameTok,
|
||||
SrcMgr::CharacteristicKind FileType) override {
|
||||
First->FileSkipped(ParentFile, FilenameTok, FileType);
|
||||
Second->FileSkipped(ParentFile, FilenameTok, FileType);
|
||||
First->FileSkipped(SkippedFile, FilenameTok, FileType);
|
||||
Second->FileSkipped(SkippedFile, FilenameTok, FileType);
|
||||
}
|
||||
|
||||
bool FileNotFound(StringRef FileName,
|
||||
|
|
|
@ -61,7 +61,7 @@ private:
|
|||
void FileChanged(SourceLocation Loc, FileChangeReason Reason,
|
||||
SrcMgr::CharacteristicKind FileType,
|
||||
FileID PrevFID) override;
|
||||
void FileSkipped(const FileEntry &ParentFile, const Token &FilenameTok,
|
||||
void FileSkipped(const FileEntry &SkippedFile, const Token &FilenameTok,
|
||||
SrcMgr::CharacteristicKind FileType) override;
|
||||
void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
|
||||
StringRef FileName, bool IsAngled,
|
||||
|
@ -153,7 +153,7 @@ void InclusionRewriter::FileChanged(SourceLocation Loc,
|
|||
|
||||
/// Called whenever an inclusion is skipped due to canonical header protection
|
||||
/// macros.
|
||||
void InclusionRewriter::FileSkipped(const FileEntry &/*ParentFile*/,
|
||||
void InclusionRewriter::FileSkipped(const FileEntry &/*SkippedFile*/,
|
||||
const Token &/*FilenameTok*/,
|
||||
SrcMgr::CharacteristicKind /*FileType*/) {
|
||||
assert(LastInsertedFileChange != FileChanges.end() && "A file, that wasn't "
|
||||
|
|
Loading…
Reference in New Issue