case tok::identifier: {
// In C++, check to see if this is a scope specifier like foo::bar::, if
// so handle it as such. This is important for ctor parsing.
- if (getLang().CPlusPlus &&
- TryAnnotateCXXScopeToken())
- continue;
+ if (getLang().CPlusPlus && TryAnnotateCXXScopeToken())
+ continue;
// This identifier can only be a typedef name if we haven't already seen
// a type-specifier. Without this check we misparse:
case tok::kw___cdecl:
case tok::kw___stdcall:
case tok::kw___fastcall:
- return PP.getLangOptions().Microsoft;
+ if (!PP.getLangOptions().Microsoft) return false;
+ ConsumeToken();
+ return true;
default:
// Not a type-specifier; do nothing.