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

David Majnemer via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 27 08:53:59 PST 2016


majnemer added a subscriber: majnemer.

================
Comment at: lib/Parse/ParseDeclCXX.cpp:1107
@@ +1106,3 @@
+  // Microsoft compatibility
+  case tok::kw___cdecl:         // struct foo {...} __cdecl   x; // C4229
+    if (!getLangOpts().MicrosoftExt)
----------------
What about __fastcall, etc.


http://reviews.llvm.org/D16628





More information about the cfe-commits mailing list