summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-11-20 22:22:04 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-11-20 22:22:04 +0000
commitb80f94b41cdcfa5f9cc17f4ffbfc02ecd654ef2a (patch)
tree1971023a58ac62697e46557d6dc875fcc73f699c /clang/lib
parentf8b41867c8adef1f2352477d84859fbeccdffdb5 (diff)
downloadbcm5719-llvm-b80f94b41cdcfa5f9cc17f4ffbfc02ecd654ef2a.tar.gz
bcm5719-llvm-b80f94b41cdcfa5f9cc17f4ffbfc02ecd654ef2a.zip
There is no such thing as __declspec(ms_struct), this is a GNU attribute. Switched the attribute to have the proper spelling, gave it a subject, updated the warning to be more accurate, and updated the test case as appropriate.
llvm-svn: 195277
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 6460b040f44..16725675a41 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -1278,7 +1278,8 @@ static void handleMsStructAttr(Sema &S, Decl *D, const AttributeList &Attr) {
MsStructAttr(Attr.getRange(), S.Context,
Attr.getAttributeSpellingListIndex()));
else
- S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName();
+ S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
+ << Attr.getName() << ExpectedStructOrUnionOrClass;
}
static void handleIBAction(Sema &S, Decl *D, const AttributeList &Attr) {
OpenPOWER on IntegriCloud