From: Fariborz Jahanian Date: Wed, 28 Nov 2012 01:27:44 +0000 (+0000) Subject: objective-C arc: Underline the selector when issuing X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84c7519a3865a04f631bc8ddfb8372223d96acfc;p=clang objective-C arc: Underline the selector when issuing 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 --- diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp index b0f9958bb5..91c7c1f945 100644 --- a/lib/Sema/SemaExprObjC.cpp +++ b/lib/Sema/SemaExprObjC.cpp @@ -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(); }