From 79d1e6ae7fb0aabfb7dbfda958f5c288c8ebff8e Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 18 Dec 2013 16:51:06 +0000 Subject: [PATCH] ObjectiveC. Fixes the sentence in a diagnostic. // rdar://15397430 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197586 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/DiagnosticSemaKinds.td | 2 +- test/SemaObjC/dealloc.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 3584569911..9eed407f93 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -777,7 +777,7 @@ def warn_arc_perform_selector_leaks : Warning< "performSelector may cause a leak because its selector is unknown">, InGroup>; def warn_dealloc_in_category : Warning< -"-dealloc in a category is being overridden">, +"-dealloc is being overridden in a category">, InGroup; def err_gc_weak_property_strong_type : Error< "weak attribute declared on a __strong type property in GC mode">; diff --git a/test/SemaObjC/dealloc.m b/test/SemaObjC/dealloc.m index a5d34e1f52..db89b20f5a 100644 --- a/test/SemaObjC/dealloc.m +++ b/test/SemaObjC/dealloc.m @@ -36,6 +36,6 @@ @end @implementation Subclass (CAT) -- (void)dealloc { // expected-warning {{-dealloc in a category is being overridden}} +- (void)dealloc { // expected-warning {{-dealloc is being overridden in a category}} } @end -- 2.40.0