[cfe-commits] r162045 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/SemaObjC/warn-cast-of-sel-expr.m
Fariborz Jahanian
fjahanian at apple.com
Thu Aug 16 13:16:46 PDT 2012
Author: fjahanian
Date: Thu Aug 16 15:16:46 2012
New Revision: 162045
URL: http://llvm.org/viewvc/llvm-project?rev=162045&view=rev
Log:
objective-C: make -Wcast-of-sel-type the default.
// rdar://12107381
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/test/SemaObjC/warn-cast-of-sel-expr.m
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=162045&r1=162044&r2=162045&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Thu Aug 16 15:16:46 2012
@@ -4964,7 +4964,7 @@
"operand of type %0 cannot be cast to a pointer type">;
def warn_cast_pointer_from_sel : Warning<
"cast of type %0 to %1 is deprecated; use sel_getName instead">,
- InGroup<SelTypeCast>, DefaultIgnore;
+ InGroup<SelTypeCast>;
def err_cast_pointer_to_non_pointer_int : Error<
"pointer cannot be cast to type %0">;
def err_typecheck_expect_scalar_operand : Error<
Modified: cfe/trunk/test/SemaObjC/warn-cast-of-sel-expr.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/warn-cast-of-sel-expr.m?rev=162045&r1=162044&r2=162045&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/warn-cast-of-sel-expr.m (original)
+++ cfe/trunk/test/SemaObjC/warn-cast-of-sel-expr.m Thu Aug 16 15:16:46 2012
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -Wcast-of-sel-type -Wno-unused-value %s
+// RUN: %clang_cc1 -fsyntax-only -verify -Wno-unused-value %s
// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wcast-of-sel-type -Wno-unused-value %s
// rdar://12107381
More information about the cfe-commits
mailing list