[PATCH] D16628: clang-cl: support __cdecl-on-struct anachronism

Stephan Bergmann via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 27 08:58:06 PST 2016


sberg 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)
----------------
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 ;)


http://reviews.llvm.org/D16628





More information about the cfe-commits mailing list