[Umbrella] Add warn_unused_result Attribute to Public Headers (#2353)

* Add some warn_unused_result attributes

* Add more

* Add some more
This commit is contained in:
Adlai Holler
2016-10-06 16:44:49 -04:00
committed by GitHub
parent 271ab20de5
commit 124234fef8
30 changed files with 128 additions and 117 deletions

View File

@@ -68,7 +68,7 @@ NS_ASSUME_NONNULL_BEGIN
@discussion To update the placeholder, see the <attributedPlaceholderText> property.
@result YES if the placeholder is currently displayed; NO otherwise.
*/
- (BOOL)isDisplayingPlaceholder;
- (BOOL)isDisplayingPlaceholder AS_WARN_UNUSED_RESULT;
/**
@abstract The styled placeholder text displayed by the text node while no text is entered
@@ -108,7 +108,7 @@ NS_ASSUME_NONNULL_BEGIN
@abstract Indicates whether the receiver's text view is the first responder, and thus has the keyboard visible and is prepared for editing by the user.
@result YES if the receiver's text view is the first-responder; NO otherwise.
*/
- (BOOL)isFirstResponder;
- (BOOL)isFirstResponder AS_WARN_UNUSED_RESULT;
//! @abstract Makes the receiver's text view the first responder.
- (BOOL)becomeFirstResponder;
@@ -123,7 +123,7 @@ NS_ASSUME_NONNULL_BEGIN
@discussion This method raises an exception if `textRange` is not a valid range of characters within the receiver's attributed text.
@result A CGRect that is the bounding box of the glyphs covered by the given range of characters, in the coordinate system of the receiver.
*/
- (CGRect)frameForTextRange:(NSRange)textRange;
- (CGRect)frameForTextRange:(NSRange)textRange AS_WARN_UNUSED_RESULT;
@end