From 0e391052d74eaff4de2ac15a7194673d39444b5b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 12 Dec 2007 18:19:52 +0000 Subject: [PATCH] make it a bit more clear in what way the ivar is consistent. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44945 91177308-0d34-0410-b5e6-96231b3b80d8 --- Sema/SemaDeclObjC.cpp | 4 ++-- include/clang/Basic/DiagnosticKinds.def | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sema/SemaDeclObjC.cpp b/Sema/SemaDeclObjC.cpp index 1a56e4822a..b2cad375f8 100644 --- a/Sema/SemaDeclObjC.cpp +++ b/Sema/SemaDeclObjC.cpp @@ -440,9 +440,9 @@ void Sema::CheckImplementationIvars(ObjcImplementationDecl *ImpDecl, } if (numIvars > 0) - Diag(ivars[j]->getLocation(), diag::err_inconsistant_ivar); + Diag(ivars[j]->getLocation(), diag::err_inconsistant_ivar_count); else if (IVI != IVE) - Diag((*IVI)->getLocation(), diag::err_inconsistant_ivar); + Diag((*IVI)->getLocation(), diag::err_inconsistant_ivar_count); } /// CheckProtocolMethodDefs - This routine checks unimpletented methods diff --git a/include/clang/Basic/DiagnosticKinds.def b/include/clang/Basic/DiagnosticKinds.def index 7fec38e800..684141a367 100644 --- a/include/clang/Basic/DiagnosticKinds.def +++ b/include/clang/Basic/DiagnosticKinds.def @@ -436,8 +436,8 @@ DIAG(err_conflicting_super_class, ERROR, "conflicting super class name '%0'") DIAG(err_conflicting_ivar_name, ERROR, "conflicting instance variable name '%0'") -DIAG(err_inconsistant_ivar, ERROR, - "inconsistent instance variable specification") +DIAG(err_inconsistant_ivar_count, ERROR, + "inconsistent number of instance variables specified") DIAG(err_conflicting_ivar_type, ERROR, "conflicting instance variable type") DIAG(warn_undef_method_impl, WARNING, -- 2.40.0