Fix another place where clang check objc selector name instead of checking the select...
authorJean-Daniel Dupas <devlists@shadowlab.org>
Fri, 19 Jul 2013 20:25:56 +0000 (20:25 +0000)
committerJean-Daniel Dupas <devlists@shadowlab.org>
Fri, 19 Jul 2013 20:25:56 +0000 (20:25 +0000)
commit06028a54545a43eb7d16aae4ab7bcb8635b68434
treea35a8cb911ef45878d2fdd1ea68b1b376f188ec6
parentd4b5a0f53ffbf9cf15d6b9d8a0efcb2464933d12
Fix another place where clang check objc selector name instead of checking the selector family

Summary: In ARC mode, clang emits a warning if the result of an 'init' method is unused but miss cases where the method does not follows the Cocoa naming convention but is properly declared as an init family method.

CC: cfe-commits, eli.friedman
Differential Revision: http://llvm-reviews.chandlerc.com/D1163

llvm-svn: 186718
clang/lib/AST/Expr.cpp
clang/test/SemaObjC/arc.m