diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-20 16:59:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-20 16:59:19 +0000 |
commit | d217773f106856a11879ec79dc468efefaf2ee75 (patch) | |
tree | b287f41254ad8f377f504fc9645404a7772084d0 /Lex/PPExpressions.cpp | |
parent | 25bdb51276d3bfc180a68688082071505a00ed27 (diff) |
At one point there were going to be lexer and parser tokens.
Since that point is now long gone, we should rename LexerToken to
Token, as it is the only kind of token we have.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Lex/PPExpressions.cpp')
-rw-r--r-- | Lex/PPExpressions.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lex/PPExpressions.cpp b/Lex/PPExpressions.cpp index b3457e7927..77098724b5 100644 --- a/Lex/PPExpressions.cpp +++ b/Lex/PPExpressions.cpp @@ -27,7 +27,7 @@ using namespace clang; static bool EvaluateDirectiveSubExpr(llvm::APSInt &LHS, unsigned MinPrec, - LexerToken &PeekTok, bool ValueLive, + Token &PeekTok, bool ValueLive, Preprocessor &PP); /// DefinedTracker - This struct is used while parsing expressions to keep track @@ -60,7 +60,7 @@ struct DefinedTracker { /// If ValueLive is false, then this value is being evaluated in a context where /// the result is not used. As such, avoid diagnostics that relate to /// evaluation. -static bool EvaluateValue(llvm::APSInt &Result, LexerToken &PeekTok, +static bool EvaluateValue(llvm::APSInt &Result, Token &PeekTok, DefinedTracker &DT, bool ValueLive, Preprocessor &PP) { Result = 0; @@ -360,7 +360,7 @@ static unsigned getPrecedence(tok::TokenKind Kind) { /// the result is not used. As such, avoid diagnostics that relate to /// evaluation. static bool EvaluateDirectiveSubExpr(llvm::APSInt &LHS, unsigned MinPrec, - LexerToken &PeekTok, bool ValueLive, + Token &PeekTok, bool ValueLive, Preprocessor &PP) { unsigned PeekPrec = getPrecedence(PeekTok.getKind()); // If this token isn't valid, report the error. @@ -393,7 +393,7 @@ static bool EvaluateDirectiveSubExpr(llvm::APSInt &LHS, unsigned MinPrec, RHSIsLive = ValueLive; // Consume the operator, saving the operator token for error reporting. - LexerToken OpToken = PeekTok; + Token OpToken = PeekTok; PP.LexNonComment(PeekTok); llvm::APSInt RHS(LHS.getBitWidth()); @@ -607,7 +607,7 @@ static bool EvaluateDirectiveSubExpr(llvm::APSInt &LHS, unsigned MinPrec, bool Preprocessor:: EvaluateDirectiveExpression(IdentifierInfo *&IfNDefMacro) { // Peek ahead one token. - LexerToken Tok; + Token Tok; Lex(Tok); // C99 6.10.1p3 - All expressions are evaluated as intmax_t or uintmax_t. |