The annotation token became a special one.

We can only consume it with calling a special interface or calling ConsumeAnyToken.
This commit is contained in:
Vassil Vassilev 2017-10-18 17:26:01 +02:00 committed by sftnight
parent 8bfa1b52c6
commit dfc5cf657d

View File

@ -753,7 +753,7 @@ namespace cling {
P.getCurToken().getAnnotationRange(),
SS);
if (SS.isValid()) {
P.ConsumeToken();
P.ConsumeAnyToken();
if (!P.getCurToken().is(clang::tok::identifier)) {
return 0;
}