This fix is C++ specific.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61816
91177308-0d34-0410-b5e6-
96231b3b80d8
case tok::kw__Complex:
case tok::kw___attribute:
return TPResult::True();
+
+ // Microsoft
+ case tok::kw___cdecl:
+ case tok::kw___stdcall:
+ case tok::kw___fastcall:
+ return PP.getLangOptions().Microsoft ? TPResult::True() : TPResult::False();
// The ambiguity resides in a simple-type-specifier/typename-specifier
// followed by a '('. The '(' could either be the start of:
-// RUN: clang -fsyntax-only -verify -fms-extensions %s
+// RUN: clang -fsyntax-only -verify -fms-extensions -x=objective-c++ %s
__stdcall int func0();
int __stdcall func();
typedef int (__cdecl *tptr)();