[PATCH] D16628: clang-cl: support __cdecl-on-struct anachronism
David Majnemer via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 27 09:13:12 PST 2016
majnemer added inline comments.
================
Comment at: lib/Parse/ParseDeclCXX.cpp:1107
@@ +1106,3 @@
+ // Microsoft compatibility
+ case tok::kw___cdecl: // struct foo {...} __cdecl x; // C4229
+ if (!getLangOpts().MicrosoftExt)
----------------
sberg wrote:
> majnemer wrote:
> > What about __fastcall, etc.
> To be honest, I have no idea what the full set of keywords is that would need to be taken care of here (so hoped I would get away with just the one I happened to come across ;)
The complete list is https://msdn.microsoft.com/en-us/library/984x0h58.aspx#mainBody
http://reviews.llvm.org/D16628
More information about the cfe-commits
mailing list