[PATCH] D56555: Add Attribute to define nonlazy objc classes

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 15 12:06:49 PST 2019


aaron.ballman added a comment.

In terms of implementation, the attribute code looks pretty close (just a few nits). However, someone more familiar with Obj-C should chime in with whether the attribute semantics make sense and whether the documentation will be sufficiently clear for an Objective-C user.



================
Comment at: clang/include/clang/Basic/AttrDocs.td:3506
+add the class to the list of non-lazily initialized classes. These are classes
+that are realized at objc_init() time rather than when first referenced. 
+  }];
----------------
Add backticks around `objc_init()` because it should be in code font.


================
Comment at: clang/test/CodeGenObjC/non-lazy-classes.m:6-7
 
- at interface A @end
+ at interface A
+ at end
 @implementation A
----------------
Spurious change that can be reverted?


================
Comment at: clang/test/CodeGenObjC/non-lazy-classes.m:31-32
 
- at interface C : A @end
+ at interface C : A
+ at end
 @implementation C
----------------
Spurious change that can be reverted?


================
Comment at: clang/test/SemaObjC/attr-objc-non-lazy.m:35
+ at end
\ No newline at end of file

----------------
Please add a newline to the end of this file.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56555/new/

https://reviews.llvm.org/D56555





More information about the cfe-commits mailing list