]> granicus.if.org Git - clang/commit
Fix this:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 19 Nov 2008 15:22:16 +0000 (15:22 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 19 Nov 2008 15:22:16 +0000 (15:22 +0000)
commit08b2c3743a29a2dddcf72e95f747760e213cdde7
tree5c7f33ab3fe286c42643cfde7a88ec9979aa61b1
parentfad03b2b38a3baea4b67e79e676fee15078e3258
Fix this:

With this snippet:
  void f(a::b);

An assert is hit:
Assertion failed: CachedTokens[CachedLexPos-1].getLocation() == Tok.getAnnotationEndLoc() && "The annotation should be until the most recent cached token", file ..\..\lib\Lex\PPCaching.cpp, line 98

Introduce Preprocessor::RevertCachedTokens that reverts a specific number of tokens when backtracking is enabled.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59636 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/Preprocessor.h
lib/Parse/Parser.cpp
test/SemaCXX/nested-name-spec.cpp