[cfe-commits] r59187 - /cfe/trunk/include/clang/Lex/PreprocessorLexer.h

Ted Kremenek kremenek at apple.com
Wed Nov 12 14:46:36 PST 2008


Author: kremenek
Date: Wed Nov 12 16:46:33 2008
New Revision: 59187

URL: http://llvm.org/viewvc/llvm-project?rev=59187&view=rev
Log:
Add LexIncludeFilename.

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

Modified: cfe/trunk/include/clang/Lex/PreprocessorLexer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/PreprocessorLexer.h?rev=59187&r1=59186&r2=59187&view=diff

==============================================================================
--- cfe/trunk/include/clang/Lex/PreprocessorLexer.h (original)
+++ cfe/trunk/include/clang/Lex/PreprocessorLexer.h Wed Nov 12 16:46:33 2008
@@ -61,6 +61,8 @@
   
   PreprocessorLexer() {}
   
+  virtual void IndirectLex(Token& Result) = 0;
+  
 protected:
   
   //===--------------------------------------------------------------------===//
@@ -99,7 +101,15 @@
     return ConditionalStack.back();
   }
   
-  unsigned getConditionalStackDepth() const { return ConditionalStack.size(); }    
+  unsigned getConditionalStackDepth() const { return ConditionalStack.size(); } 
+  
+  //===--------------------------------------------------------------------===//
+  // Misc. lexing methods.
+  
+  /// LexIncludeFilename - After the preprocessor has parsed a #include, lex and
+  /// (potentially) macro expand the filename.  If the sequence parsed is not
+  /// lexically legal, emit a diagnostic and return a result EOM token.
+  void LexIncludeFilename(Token &Result);
 };
 
 }  // end namespace clang





More information about the cfe-commits mailing list