Downgrade 'attribute ignored when parsing type' from error to warning, to match
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 29 Jan 2013 10:02:16 +0000 (10:02 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 29 Jan 2013 10:02:16 +0000 (10:02 +0000)
commit810ad3eb447e663984a79553e3c756a04ae7c418
tree9dc1e5bde026df9bc3da7c84f451169fe49e1603
parent6a217e1815a8f88506d1d4a2bf3a941014b84193
Downgrade 'attribute ignored when parsing type' from error to warning, to match
the diagnostic's warn_ name. Switch some places (notably C++11 attributes)
which really wanted an error over to a different diagnostic. Finally, suppress
the diagnostic entirely for __ptr32, __ptr64 and __w64, to avoid producing
diagnostics in important system headers.

llvm-svn: 173788
13 files changed:
clang/include/clang/Basic/DiagnosticCommonKinds.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/AttributeList.h
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseDeclCXX.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaType.cpp
clang/test/Parser/MicrosoftExtensions.c
clang/test/Parser/cxx0x-attributes.cpp
clang/test/Sema/callingconv.c
clang/test/Sema/types.c
clang/test/SemaCXX/attr-cxx0x.cpp
clang/test/SemaCXX/cxx11-gnu-attrs.cpp