diff options
| author | Steve Naroff <snaroff@apple.com> | 2009-02-21 19:50:43 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2009-02-21 19:50:43 +0000 |
| commit | cd8d5722830c7765e98b2e78b44bb7d6932c658d (patch) | |
| tree | 9f850de60ebc0e0c3992f7766c2162f3b2be6d3c /clang/lib | |
| parent | 0c9404e0a764fc15a7080ccabf10eeacd2265d68 (diff) | |
| download | bcm5719-llvm-cd8d5722830c7765e98b2e78b44bb7d6932c658d.tar.gz bcm5719-llvm-cd8d5722830c7765e98b2e78b44bb7d6932c658d.zip | |
Warn about bogus protocol qualifiers.
llvm-svn: 65241
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Sema/SemaType.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp index 252cd2d533c..acdeec6ba94 100644 --- a/clang/lib/Sema/SemaType.cpp +++ b/clang/lib/Sema/SemaType.cpp @@ -151,6 +151,9 @@ QualType Sema::ConvertDeclSpecToType(const DeclSpec &DS) { // id<protocol-list> Result = Context.getObjCQualifiedIdType((ObjCProtocolDecl**)PQ, DS.getNumProtocolQualifiers()); + else + Diag(DS.getSourceRange().getBegin(), + diag::warn_ignoring_objc_qualifiers) << DS.getSourceRange(); } // TypeQuals handled by caller. break; |

