commit | f55b1101191cf07c0836bc609050674628e431b2 | [log] [tgz] |
---|---|---|
author | Argiris Kirtzidis <akyrtzi@gmail.com> | Sun Aug 10 13:15:22 2008 +0000 |
committer | Argiris Kirtzidis <akyrtzi@gmail.com> | Sun Aug 10 13:15:22 2008 +0000 |
tree | ea9d1600a9098e36c5ec0da6632e44180d1ad9d4 | |
parent | 8324cb69b10852d2121efc6652c7b4912c7c8cea [diff] |
Allow the preprocessor to cache the lexed tokens, so that we can do 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54611 91177308-0d34-0410-b5e6-96231b3b80d8