]> granicus.if.org Git - clang/commit
clang-cl: support __cdecl-on-struct anachronism
authorReid Kleckner <rnk@google.com>
Mon, 21 Mar 2016 16:08:49 +0000 (16:08 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 21 Mar 2016 16:08:49 +0000 (16:08 +0000)
commit2588905bfe9fc131e1bb21dd5f6b78fd64031e06
treec8472d4cd67e900ec4aabc4d81473ba1899ab606
parent5b12ee708d07fc648e3aea349f9832bca0c6db76
clang-cl: support __cdecl-on-struct anachronism

Summary:
The Microsoft compiler emits

  warning C4229: anachronism used : modifiers on data are ignored

for

  struct {} __cdecl s;

but ICU's gendict can generate such (and does when building
LibreOffice), so accepting this in clang-cl too would be useful.

Reviewers: rnk

Patch by Stephan Bergmann

Differential Revision: http://reviews.llvm.org/D16628

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263947 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseDeclCXX.cpp
test/Parser/ms-anachronism.c [new file with mode: 0644]