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:
parent
8bfa1b52c6
commit
dfc5cf657d
@ -753,7 +753,7 @@ namespace cling {
|
|||||||
P.getCurToken().getAnnotationRange(),
|
P.getCurToken().getAnnotationRange(),
|
||||||
SS);
|
SS);
|
||||||
if (SS.isValid()) {
|
if (SS.isValid()) {
|
||||||
P.ConsumeToken();
|
P.ConsumeAnyToken();
|
||||||
if (!P.getCurToken().is(clang::tok::identifier)) {
|
if (!P.getCurToken().is(clang::tok::identifier)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user