Tighten diagnostics for calling conventions on variadic functions
authorHans Wennborg <hans@hanshq.net>
Wed, 9 Oct 2013 18:10:25 +0000 (18:10 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 9 Oct 2013 18:10:25 +0000 (18:10 +0000)
commit1e109804f5c2ffbd163920c0760e7094cd10b0ba
tree8eafb9454ad16ba8aff52b5d76441cb6334b2cd3
parent63de98b0a0c0de381313648b358c692c66235d22
Tighten diagnostics for calling conventions on variadic functions

Follow-up from r192240.

This makes it an error to use callee-cleanup conventions on variadic
functions, except for __fastcall and __stdcall, which we ignore with
a warning for GCC and MSVC compatibility.

Differential Revision: http://llvm-reviews.chandlerc.com/D1870

llvm-svn: 192308
clang/include/clang/Basic/Specifiers.h
clang/lib/Sema/SemaType.cpp
clang/test/CodeGen/microsoft-call-conv.c
clang/test/Sema/callingconv.c
clang/test/Sema/mrtd.c
clang/test/SemaCXX/calling-conv-compat.cpp