]> granicus.if.org Git - clang/commit
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)
commitd03de6aaa312d57dcd6e2bc76bed1e89f5c5019d
tree6eb0b96b1c0883d75befbcd1d33e372f78493b93
parent93384a910cb98f3a128b76e6043f149e1b384c65
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173788 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/Basic/DiagnosticCommonKinds.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/AttributeList.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaType.cpp
test/Parser/MicrosoftExtensions.c
test/Parser/cxx0x-attributes.cpp
test/Sema/callingconv.c
test/Sema/types.c
test/SemaCXX/attr-cxx0x.cpp
test/SemaCXX/cxx11-gnu-attrs.cpp