summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-01-29 10:02:16 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-01-29 10:02:16 +0000
commit810ad3eb447e663984a79553e3c756a04ae7c418 (patch)
tree9dc1e5bde026df9bc3da7c84f451169fe49e1603 /clang/lib/Parse/ParseDecl.cpp
parent6a217e1815a8f88506d1d4a2bf3a941014b84193 (diff)
downloadbcm5719-llvm-810ad3eb447e663984a79553e3c756a04ae7c418.tar.gz
bcm5719-llvm-810ad3eb447e663984a79553e3c756a04ae7c418.zip
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
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 20d8f711ae1..e11fb913a76 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -1151,7 +1151,7 @@ void Parser::ProhibitCXX11Attributes(ParsedAttributesWithRange &attrs) {
AttributeList *AttrList = attrs.getList();
while (AttrList) {
if (AttrList->isCXX11Attribute()) {
- Diag(AttrList->getLoc(), diag::warn_attribute_no_decl)
+ Diag(AttrList->getLoc(), diag::err_attribute_not_type_attr)
<< AttrList->getName();
AttrList->setInvalid();
}
OpenPOWER on IntegriCloud