diff options
Diffstat (limited to 'clang/include/clang/Lex/PPCallbacks.h')
-rw-r--r-- | clang/include/clang/Lex/PPCallbacks.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/clang/include/clang/Lex/PPCallbacks.h b/clang/include/clang/Lex/PPCallbacks.h index 1edcb567de66..de5e8eb2ca22 100644 --- a/clang/include/clang/Lex/PPCallbacks.h +++ b/clang/include/clang/Lex/PPCallbacks.h @@ -308,7 +308,7 @@ public: /// read. virtual void HasInclude(SourceLocation Loc, StringRef FileName, bool IsAngled, Optional<FileEntryRef> File, - SrcMgr::CharacteristicKind FileType) {} + SrcMgr::CharacteristicKind FileType); /// Hook called when a source range is skipped. /// \param Range The SourceRange that was skipped. The range begins at the @@ -374,7 +374,6 @@ public: /// Simple wrapper class for chaining callbacks. class PPChainedCallbacks : public PPCallbacks { - virtual void anchor(); std::unique_ptr<PPCallbacks> First, Second; public: @@ -382,6 +381,8 @@ public: std::unique_ptr<PPCallbacks> _Second) : First(std::move(_First)), Second(std::move(_Second)) {} + ~PPChainedCallbacks() override; + void FileChanged(SourceLocation Loc, FileChangeReason Reason, SrcMgr::CharacteristicKind FileType, FileID PrevFID) override { @@ -490,10 +491,7 @@ public: void HasInclude(SourceLocation Loc, StringRef FileName, bool IsAngled, Optional<FileEntryRef> File, - SrcMgr::CharacteristicKind FileType) override { - First->HasInclude(Loc, FileName, IsAngled, File, FileType); - Second->HasInclude(Loc, FileName, IsAngled, File, FileType); - } + SrcMgr::CharacteristicKind FileType) override; void PragmaOpenCLExtension(SourceLocation NameLoc, const IdentifierInfo *Name, SourceLocation StateLoc, unsigned State) override { |