From 36e738a8cb11a95763e6e44ab9d0c69b9cb2437c Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 11 Aug 2010 18:57:26 +0000 Subject: [PATCH] Update documentation regarding use of 'class' in property-dot syntax. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110841 91177308-0d34-0410-b5e6-96231b3b80d8 --- www/compatibility.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/www/compatibility.html b/www/compatibility.html index 0f8409b953..4ad5bc018a 100644 --- a/www/compatibility.html +++ b/www/compatibility.html @@ -58,6 +58,9 @@ + @@ -604,6 +607,28 @@ explicit cast:

f((Derived *)base); + +

Use of class as method name

+ + +

Use of 'class' name to declare a method is allowed in objective-c++ mode to +be compatible with GCC. However, use of property dot syntax notation to call +this method is not allowed in clang++, as [I class] is a suitable syntax that +will work. So, this test will fail in clang++. + +

+@interface I {
+int cls;
+}
++ (int)class;
+@end
+
+@implementation  I
+- (int) Meth { return I.class; }
+@end
+
+
+
 
 
 
-- 
2.40.0