]> granicus.if.org Git - clang/commit
Win64: Silently ignore __stdcall, __fastcall, and __thiscall
authorReid Kleckner <reid@kleckner.net>
Thu, 26 Feb 2015 19:43:46 +0000 (19:43 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 26 Feb 2015 19:43:46 +0000 (19:43 +0000)
commit413d8cac1a6980a3fd26bf12da15e53521507b58
tree050b43d29b2067f68db488f13a9a950b78dde667
parentabe6486f9791f5fafeaf5f8d4caa9c2d24e16f4c
Win64: Silently ignore __stdcall, __fastcall, and __thiscall

MSVC doesn't warn on this. Users are expected to apply the WINAPI macro
to functions passed by pointer to the Win32 API, and this macro expands
to __stdcall. This means we end up with a lot of useless noisy warnings
about ignored calling conventions when compiling code with clang for
Win64.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@230668 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TargetInfo.h
lib/Basic/Targets.cpp
lib/Sema/SemaDeclAttr.cpp
test/Sema/MicrosoftCompatibility-x64.c