summaryrefslogtreecommitdiffstats
path: root/clang/include
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-05-07 23:06:50 +0000
committerMike Stump <mrs@apple.com>2009-05-07 23:06:50 +0000
commit5580bdcaa2d4fd8e12ef3c46b47fad4b85e32e53 (patch)
tree5fb6faa211699091f0147eb0bd59169c88c68395 /clang/include
parent81ded6951180caf4bccaef638f31fabcfab0627d (diff)
downloadbcm5719-llvm-5580bdcaa2d4fd8e12ef3c46b47fad4b85e32e53.tar.gz
bcm5719-llvm-5580bdcaa2d4fd8e12ef3c46b47fad4b85e32e53.zip
Add a warning for a missing copy attribute on a property that is a
block pointer. Radar 6441502 llvm-svn: 71190
Diffstat (limited to 'clang/include')
-rw-r--r--clang/include/clang/Basic/DiagnosticSemaKinds.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td
index 7ac13d83fc0..3b8f24bc65c 100644
--- a/clang/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td
@@ -194,6 +194,9 @@ def warn_objc_property_default_assign_on_object : Warning<
"default property attribute 'assign' not appropriate for non-gc object">;
def warn_property_attr_mismatch : Warning<
"property attribute in continuation class does not match the primary class">;
+def warn_objc_property_copy_missing_on_block : Warning<
+ "'copy' attribute must be specified for the block property "
+ "when -fobjc-gc-only is specified">;
def err_use_continuation_class : Error<
"attribute of property in continuation class of %0 can only be 'readwrite'">;
def err_continuation_class : Error<"continuation class has no primary class">;
OpenPOWER on IntegriCloud