[cfe-commits] r168756 - /cfe/trunk/lib/Sema/SemaExprObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Nov 27 17:27:44 PST 2012
Author: fjahanian
Date: Tue Nov 27 19:27:44 2012
New Revision: 168756
URL: http://llvm.org/viewvc/llvm-project?rev=168756&view=rev
Log:
objective-C arc: Underline the selector when issuing
arc specific diagnostic on the selector. This is objc-arc
part of // rdar://11303469
Modified:
cfe/trunk/lib/Sema/SemaExprObjC.cpp
Modified: cfe/trunk/lib/Sema/SemaExprObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprObjC.cpp?rev=168756&r1=168755&r2=168756&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprObjC.cpp Tue Nov 27 19:27:44 2012
@@ -2236,7 +2236,8 @@
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();
}
More information about the cfe-commits
mailing list