| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
curlies.
llvm-svn: 195802
|
|
|
|
|
|
|
| |
the duplicated documentation from .cpp files so that it's not processed by
Doxygen and hence doesn't generate duplicate output.
llvm-svn: 195799
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tokens
cached during the non-cached lex, otherwise we are going to drop them.
Fixes a bogus "_Pragma takes a parenthesized string literal" error when
expanding consecutive _Pragmas in a macro argument.
Part of rdar://11168596
llvm-svn: 153994
|
|
|
|
|
|
| |
or when modules are disabled.
llvm-svn: 147524
|
|
|
|
|
|
|
|
|
|
|
|
| |
keyword. We now handle this keyword in HandleIdentifier, making a note
for ourselves when we've seen the __import_module__ keyword so that
the next lexed token can trigger a module import (if needed). This
greatly simplifies Preprocessor::Lex(), and completely erases the 5.5%
-Eonly slowdown Argiris noted when I originally implemented
__import_module__. Big thanks to Argiris for noting that horrible
regression!
llvm-svn: 139265
|
|
|
|
|
|
|
|
| |
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
|