From: Ted Kremenek Date: Wed, 19 Nov 2008 22:42:26 +0000 (+0000) Subject: Add stub for PTHLexer::isNextPPTokenLParen(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f1c0243f7fc5d12446efcb006c071854c345923;p=clang Add stub for PTHLexer::isNextPPTokenLParen(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59670 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Lex/PTHLexer.h b/include/clang/Lex/PTHLexer.h index bdaba760cf..5118c5c7be 100644 --- a/include/clang/Lex/PTHLexer.h +++ b/include/clang/Lex/PTHLexer.h @@ -60,6 +60,11 @@ public: /// ReadToEndOfLine - Read the rest of the current preprocessor line as an /// uninterpreted string. This switches the lexer out of directive mode. void DiscardToEndOfLine(); + + /// isNextPPTokenLParen - Return 1 if the next unexpanded token will return a + /// tok::l_paren token, 0 if it is something else and 2 if there are no more + /// tokens controlled by this lexer. + unsigned isNextPPTokenLParen(); }; } // end namespace clang diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index 15d5603969..e9d6d4794f 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/lib/Lex/PTHLexer.cpp @@ -80,6 +80,11 @@ void PTHLexer::setEOF(Token& Tok) { void PTHLexer::DiscardToEndOfLine() { assert(ParsingPreprocessorDirective && ParsingFilename == false && "Must be in a preprocessing directive!"); - assert (0 && "Not implemented."); } + +unsigned PTHLexer::isNextPPTokenLParen() { + assert (0 && "Not implemented."); + return 0; +} +