diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-11-19 22:42:26 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-11-19 22:42:26 +0000 |
| commit | 11cfbb473eaf1bf14080e79487c016bbc553d310 (patch) | |
| tree | 235967703c5fe51c4dd163f060467cdebd318ded | |
| parent | c9a67fa201d6086ae3c4c3f47a6dc6b31790f650 (diff) | |
| download | bcm5719-llvm-11cfbb473eaf1bf14080e79487c016bbc553d310.tar.gz bcm5719-llvm-11cfbb473eaf1bf14080e79487c016bbc553d310.zip | |
Add stub for PTHLexer::isNextPPTokenLParen().
llvm-svn: 59670
| -rw-r--r-- | clang/include/clang/Lex/PTHLexer.h | 5 | ||||
| -rw-r--r-- | clang/lib/Lex/PTHLexer.cpp | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/clang/include/clang/Lex/PTHLexer.h b/clang/include/clang/Lex/PTHLexer.h index bdaba760cf3..5118c5c7bec 100644 --- a/clang/include/clang/Lex/PTHLexer.h +++ b/clang/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/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp index 15d56039692..e9d6d4794f9 100644 --- a/clang/lib/Lex/PTHLexer.cpp +++ b/clang/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; +} + |

