Home
last modified time | relevance | path

Searched refs:RootClass (Results 1 – 4 of 4) sorted by relevance

/external/clang/test/SemaObjC/
Dclass-property-access.m16 @interface RootClass { interface
26 @interface Subclass : RootClass @end
29 (void)RootClass.property;
31 (void)RootClass.method;
34 RootClass.property = 1;
36 RootClass.method = 3;
40 (void)RootClass.classMethod;
44 (void)[RootClass property];
46 [RootClass method];
48 [RootClass classMethod];
[all …]
Dattr-root-class.m2 @interface RootClass {} // expected-warning {{class 'RootClass' defined without specifying a base c… interface
5 @implementation RootClass implementation
9 @interface NonRootClass : RootClass // expected-error {{objc_root_class attribute may only be spe…
/external/clang/lib/Frontend/Rewrite/
DRewriteModernObjC.cpp6488 const ObjCInterfaceDecl *RootClass = CDecl; in Write_class_t() local
6492 RootClass = CDecl->getSuperClass(); in Write_class_t()
6493 while (RootClass->getSuperClass()) { in Write_class_t()
6494 RootClass = RootClass->getSuperClass(); in Write_class_t()
6526 if (metaclass && RootClass != SuperClass) { in Write_class_t()
6528 if (RootClass->getImplementation()) in Write_class_t()
6535 Result += RootClass->getNameAsString(); in Write_class_t()
6547 Result += RootClass->getNameAsString(); in Write_class_t()
6595 Result += RootClass->getNameAsString(); Result += ";\n"; in Write_class_t()
DRewriteObjC.cpp5423 ObjCInterfaceDecl *RootClass = nullptr; in RewriteObjCClassMetaData() local
5426 RootClass = SuperClass; in RewriteObjCClassMetaData()
5435 Result += (RootClass ? RootClass->getNameAsString() : CDecl->getNameAsString()); in RewriteObjCClassMetaData()