]> granicus.if.org Git - clang/commitdiff
Fix typo in name of diagnostic.
authorTed Kremenek <kremenek@apple.com>
Wed, 12 Oct 2011 18:03:37 +0000 (18:03 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 12 Oct 2011 18:03:37 +0000 (18:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141793 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaObjCProperty.cpp

index 5617f7e69121f2b382ef31a53f438246662312c2..12d21e91696ae4d956fc93e89a0b2a19940a58f1 100644 (file)
@@ -506,7 +506,7 @@ def note_atomic_property_fixup_suggest : Note<"setter and getter must both be "
 def warn_atomic_property_nontrivial_assign_op : Warning<
   "atomic property of type %0 synthesizing setter using non-trivial assignment"
   " operator">, InGroup<DiagGroup<"objc-property-atomic-setter-synthesis">>;
-def warn_ownin_getter_rule : Warning<
+def warn_owning_getter_rule : Warning<
   "property's synthesized getter follows Cocoa naming"
   " convention for returning 'owned' objects">,
   InGroup<DiagGroup<"objc-property-matches-cocoa-ownership-rule">>;
index 063b4abfb2a7bd592ba5ab22572b83f31716d9b9..33069928f24a7814688eb20b129c87cee74b36b5 100644 (file)
@@ -1462,7 +1462,7 @@ void Sema::DiagnoseOwningPropertyGetterSynthesis(const ObjCImplementationDecl *D
         if (getLangOptions().ObjCAutoRefCount)
           Diag(PID->getLocation(), diag::err_ownin_getter_rule);
         else
-          Diag(PID->getLocation(), diag::warn_ownin_getter_rule);
+          Diag(PID->getLocation(), diag::warn_owning_getter_rule);
         Diag(PD->getLocation(), diag::note_property_declare);
       }
     }