llvm-project/clang/test/Sema/nowarn-documentation-property.m
Fariborz Jahanian 81bbee1ed8 comment parsing: Properties are considered like methods, and people
think of them as having return values that may be computed. Don't
warn when using @return in their comment. // rdar://13189938

llvm-svn: 176147
2013-02-27 00:46:06 +00:00

16 lines
690 B
Objective-C

// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-objc-root-class -Wdocumentation -verify %s
// expected-no-diagnostics
// rdar://13189938
@interface NSPredicate
/// The full predicate to be used for drawing objects from the store.
/// It is an AND of the parent's `prefixPredicate` (e.g., the selection for
/// volume number) and the `filterPredicate` (selection by matching the name).
/// @return `nil` if there is no search string, and no prefix.
@property(readonly) NSPredicate *andPredicate;
/// The predicate that matches the string to be searched for. This
/// @return `nil` if there is no search string.
@property(readonly) NSPredicate *filterPredicate;
@end