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 | 2f1c0243f7fc5d12446efcb006c071854c345923 (patch) | |
tree | b0a31f8006139a3b04f1dae73e23a8215cff2621 | |
parent | e55f4ee4fd435e29015e2eea952744ee2a621030 (diff) |
Add stub for PTHLexer::isNextPPTokenLParen().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59670 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Lex/PTHLexer.h | 5 | ||||
-rw-r--r-- | lib/Lex/PTHLexer.cpp | 7 |
2 files changed, 11 insertions, 1 deletions
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; +} + |