diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2010-07-08 09:42:26 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2010-07-08 09:42:26 +0000 |
| commit | dd1bc0f1b5a62c139344003c5e844c198b31557f (patch) | |
| tree | b96d26b3eb61a73d1dcc9c8149bc955a7bae9c2f /clang/lib/Sema/SemaDeclAttr.cpp | |
| parent | b69d4ce5f338ece8001fd53ba763f708ad8d6ec5 (diff) | |
| download | bcm5719-llvm-dd1bc0f1b5a62c139344003c5e844c198b31557f.tar.gz bcm5719-llvm-dd1bc0f1b5a62c139344003c5e844c198b31557f.zip | |
Add support for differentiating between attributes ignored when handled and
unknown attributes that we discard. Add a diagnostic group for unknown
attribute warnings to allow turning these off when we don't care. Also
consolidates the tests for this case.
llvm-svn: 107864
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index b7e275a9d4b..3b82f58be43 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -2069,7 +2069,8 @@ static void ProcessDeclAttribute(Scope *scope, Decl *D, // Ask target about the attribute. const TargetAttributesSema &TargetAttrs = S.getTargetAttributesSema(); if (!TargetAttrs.ProcessDeclAttribute(scope, D, Attr, S)) - S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); + S.Diag(Attr.getLoc(), diag::warn_unknown_attribute_ignored) + << Attr.getName(); break; } } |

