From: Ted Kremenek Date: Wed, 12 Oct 2011 18:03:37 +0000 (+0000) Subject: Fix typo in name of diagnostic. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=920c9c1155c118ac40e5209d4b757b9f54186339;p=clang Fix typo in name of diagnostic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141793 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 5617f7e691..12d21e9169 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -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>; -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>; diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index 063b4abfb2..33069928f2 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -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); } }