<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 19, 2014 at 10:40 AM, Nico Weber <span dir="ltr"><<a href="mailto:thakis@chromium.org" target="_blank">thakis@chromium.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra">I did give it a try, and rejecting stdcall fires on Windows SDK headers:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">...win8sdk/Include/um\imm.h(432,13) : error(clang): function with no prototype cannot use stdcall calling convention</div>
<div class="gmail_extra">BOOL WINAPI ImmDisableLegacyIME();</div><div class="gmail_extra"> ^</div></div></div></blockquote><div><br></div><div>Bummer. :( We could make it a default error warning, thereby suppressing it in system headers, I guess.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_extra">
So the same mechanism doesn't work for stdcall. We could do the same thing for thiscall, but if msvc rejects that in C files, we should probably just do that too?</div>
</div></div>
</blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">GCC allows __attribute__((thiscall)) in C mode. I don't think it's worth the complexity of diagnosing this differently in different modes.</div>
</div>