| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
so this code is
totally unnecessary.
llvm-svn: 108199
|
| |
|
|
|
|
| |
tok::eofs.
llvm-svn: 108175
|
| |
|
|
|
|
|
|
|
|
| |
In the case of backtracking, the cached token lexer will be the only
lexer on the stack, without this the token stack will be empty and EOF
won't be returned.
This fixes PR7072.
llvm-svn: 108124
|
| |
|
|
|
|
| |
sure that the new token's range extends to the end of the old token. Assert that in AnnotateCachedTokens. Fixes PR6248.
llvm-svn: 95555
|
| |
|
|
|
|
|
|
|
|
|
| |
annotation token, because some of the tokens we're annotating might
not be in the set of cached tokens (we could have consumed them
unconditionally).
Also, move the tentative parsing from ParseTemplateTemplateArgument
into the one caller that needs it, improving recovery.
llvm-svn: 86904
|
| |
|
|
| |
llvm-svn: 81346
|
| |
|
|
|
|
| |
cached token position is at the end
llvm-svn: 77159
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Token now has a class of kinds for "literals", which include
numeric constants, strings, etc. These tokens can optionally have
a pointer to the start of the token in the lexer buffer. This
makes it faster to get spelling and do other gymnastics, because we
don't have to go through source locations.
This change is performance neutral, but will make other changes
more feasible down the road.
llvm-svn: 63028
|
| |
|
|
|
|
| |
can be provided by using Preprocessor::isBacktrackEnabled().
llvm-svn: 59631
|
| |
|
|
| |
llvm-svn: 59181
|
| |
|
|
|
|
|
|
| |
by the parser to replace a group of tokens with a single token encoding semantic information.
Will be fully utilized later for C++ nested-name-specifiers.
llvm-svn: 58911
|
| |
|
|
| |
llvm-svn: 55829
|
| |
|
|
| |
llvm-svn: 55281
|
| |
|
|
| |
llvm-svn: 55235
|
| |
|
|
| |
llvm-svn: 55204
|
|
|
efficient lookahead and backtracking.
1) New public methods added:
-EnableBacktrackAtThisPos
-DisableBacktrack
-Backtrack
-isBacktrackEnabled
2) LookAhead() implementation is replaced with a more efficient one.
3) LookNext() is removed.
llvm-svn: 54611
|