]> granicus.if.org Git - clang/commitdiff
objective-C arc: Underline the selector when issuing
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 28 Nov 2012 01:27:44 +0000 (01:27 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 28 Nov 2012 01:27:44 +0000 (01:27 +0000)
arc specific diagnostic on the selector. This is objc-arc
part of // rdar://11303469

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168756 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExprObjC.cpp

index b0f9958bb526d7a1a029b9d38f6d0cd04eecf12e..91c7c1f945e35d4b49f461f13bc338928cc38d26 100644 (file)
@@ -2236,7 +2236,8 @@ ExprResult Sema::BuildInstanceMessage(Expr *Receiver,
 
           if (!Method && getLangOpts().ObjCAutoRefCount) {
             Diag(Loc, diag::err_arc_may_not_respond)
-              << OCIType->getPointeeType() << Sel;
+              << OCIType->getPointeeType() << Sel 
+              << SourceRange(SelectorLocs.front(), SelectorLocs.back());
             return ExprError();
           }