Lines Matching refs:TestObject
17 @interface TestObject : NSObject interface
20 TestObject * _Nonnull returnsNilObjCInstanceIndirectly() {
21 TestObject *local = 0;
25 TestObject * _Nonnull returnsNilObjCInstanceIndirectlyWithSupressingCast() {
26 TestObject *local = 0;
27 return (TestObject * _Nonnull)local; // no-warning
30 TestObject * _Nonnull returnsNilObjCInstanceDirectly() {
36 TestObject * _Nonnull returnsNilObjCInstanceDirectlyWithSuppressingCast() {
37 return (TestObject * _Nonnull)nil; // no-warning
40 void testObjCNonARCNoInitialization(TestObject * _Nonnull p) {
41 TestObject * _Nonnull implicitlyZeroInitialized; // no-warning
46 …TestObject * _Nonnull explicitlyZeroInitialized = nil; // expected-warning {{Null is assigned to a…
93 - (TestObject * _Nonnull) returnsNil {
94 return (TestObject * _Nonnull)nil;
96 - (TestObject * _Nonnull) inlineOfReturnsNilObjCInstanceDirectlyWithSuppressingCast {
97 TestObject *o = [self returnsNil];