[cfe-commits] r125669 - /cfe/trunk/include/clang/Lex/PPCallbacks.h

Douglas Gregor dgregor at apple.com
Wed Feb 16 10:15:35 PST 2011


Author: dgregor
Date: Wed Feb 16 12:15:35 2011
New Revision: 125669

URL: http://llvm.org/viewvc/llvm-project?rev=125669&view=rev
Log:
Teach PPChainedCallbacks to forward the InclusionDirective() callback.

Modified:
    cfe/trunk/include/clang/Lex/PPCallbacks.h

Modified: cfe/trunk/include/clang/Lex/PPCallbacks.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/PPCallbacks.h?rev=125669&r1=125668&r2=125669&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/PPCallbacks.h (original)
+++ cfe/trunk/include/clang/Lex/PPCallbacks.h Wed Feb 16 12:15:35 2011
@@ -183,6 +183,18 @@
     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();





More information about the cfe-commits mailing list