]> granicus.if.org Git - clang/commitdiff
Add LexIncludeFilename.
authorTed Kremenek <kremenek@apple.com>
Wed, 12 Nov 2008 22:46:33 +0000 (22:46 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 12 Nov 2008 22:46:33 +0000 (22:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59187 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/PreprocessorLexer.h

index 7ac1eea20c2ee8f2f1c5f535580330d0264887a1..12a0cef992edea02c778c2b57a1fca6a2924fbe1 100644 (file)
@@ -61,6 +61,8 @@ protected:
   
   PreprocessorLexer() {}
   
+  virtual void IndirectLex(Token& Result) = 0;
+  
 protected:
   
   //===--------------------------------------------------------------------===//
@@ -99,7 +101,15 @@ protected:
     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