]> granicus.if.org Git - clang/commitdiff
Added virtual method 'IndirectLex' to PTHLexer. This will likely get removed in...
authorTed Kremenek <kremenek@apple.com>
Thu, 20 Nov 2008 07:54:06 +0000 (07:54 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 20 Nov 2008 07:54:06 +0000 (07:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59722 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/PTHLexer.h

index 96049b74f2a17ad41f5a27f69905fd36999f43b7..8c88d6f52fb17442994c6b5430bf787c4e1117ef 100644 (file)
@@ -54,6 +54,10 @@ public:
   /// tok::l_paren token, 0 if it is something else and 2 if there are no more
   /// tokens controlled by this lexer.
   unsigned isNextPPTokenLParen();
+  
+  /// IndirectLex - An indirect call to 'Lex' that can be invoked via
+  ///  the PreprocessorLexer interface.
+  void IndirectLex(Token &Result) { Lex(Result); }
 };
 
 }  // end namespace clang