From: Douglas Gregor Date: Wed, 16 Feb 2011 18:15:35 +0000 (+0000) Subject: Teach PPChainedCallbacks to forward the InclusionDirective() callback. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c97ca091200311229ce3cb070f0ed8846687eda;p=clang Teach PPChainedCallbacks to forward the InclusionDirective() callback. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125669 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Lex/PPCallbacks.h b/include/clang/Lex/PPCallbacks.h index fcfbc11c98..b2a80a6298 100644 --- a/include/clang/Lex/PPCallbacks.h +++ b/include/clang/Lex/PPCallbacks.h @@ -183,6 +183,18 @@ public: Second->FileSkipped(ParentFile, FilenameTok, FileType); } + virtual void InclusionDirective(SourceLocation HashLoc, + const Token &IncludeTok, + llvm::StringRef FileName, + bool IsAngled, + const FileEntry *File, + SourceLocation EndLoc) { + First->InclusionDirective(HashLoc, IncludeTok, FileName, IsAngled, File, + EndLoc); + Second->InclusionDirective(HashLoc, IncludeTok, FileName, IsAngled, File, + EndLoc); + } + virtual void EndOfMainFile() { First->EndOfMainFile(); Second->EndOfMainFile();