diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2008-04-21 21:57:36 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2008-04-21 21:57:36 +0000 |
commit | 6cdf16d61de193e0596c3c2cec02e4227212986a (patch) | |
tree | 1faeced8d9ccbe623295b417a4a3a3216a69f9b4 /include/clang/Basic | |
parent | c35b9e4e2efad727538c848cf30d4b0eb1031dc9 (diff) |
More semantics checks of properties. Property implementation can implicitly use
ivar of same name.
Better diagnostics to bring home this point.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/DiagnosticKinds.def | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticKinds.def b/include/clang/Basic/DiagnosticKinds.def index 4f46eaa028..a8560e1cb3 100644 --- a/include/clang/Basic/DiagnosticKinds.def +++ b/include/clang/Basic/DiagnosticKinds.def @@ -492,7 +492,7 @@ DIAG(error_missing_property_context, ERROR, DIAG(error_bad_property_context, ERROR, "property implementation must be in a class or category implementation") DIAG(error_bad_property_decl, ERROR, - "property implementation must have its declaration in the class '%0'") + "property implementation must have its declaration in interface '%0'") DIAG(error_bad_category_property_decl, ERROR, "property implementation must have its declaration in the category '%0'") DIAG(error_property_ivar_decl, ERROR, @@ -502,7 +502,8 @@ DIAG(error_dynamic_property_ivar_decl, ERROR, DIAG(error_missing_property_interface, ERROR, "property implementation in a category with no category declaration") DIAG(error_missing_property_ivar_decl, ERROR, - "property synthesize requires a previously declared ivar") + "synthesized property '%0' must either be named the same as a compatible" + " ivar or must explicitly name an ivar") DIAG(error_synthesize_category_decl, ERROR, "@synthesize not allowed in a category's implementation") DIAG(error_property_ivar_type, ERROR, |