Lines Matching refs:NODEREF
7 #define NODEREF __attribute__((noderef)) macro
15 …int NODEREF i; // expected-warning{{'noderef' can only be used on an array or pointer type}} in Normal()
16 int NODEREF *i_ptr; // expected-note 2 {{i_ptr declared here}} in Normal()
17 int NODEREF **i_ptr2; // ok in Normal()
18 …int *NODEREF i_ptr3; // expected-warning{{'noderef' can only be used on an array or pointer type}} in Normal()
19 int *NODEREF *i_ptr4; // ok in Normal()
21 auto NODEREF *auto_i_ptr = i_ptr; in Normal()
22 …auto NODEREF auto_i = i; // expected-warning{{'noderef' can only be used on an array or pointer ty… in Normal()
27 } NODEREF *s; in Normal()
37 const int NODEREF *const_i_ptr;
38 static int NODEREF *static_i_ptr;
41 int NODEREF(*i_ptr); // ok (same as `int NODEREF *`) in ParenTypes() local
42 int NODEREF *(*i_ptr2); // ok (same as `int NODEREF **`) in ParenTypes()
46 int NODEREF func(); // expected-warning{{'noderef' can only be used on an array or pointer type}}
47 int NODEREF *func2(); // ok (returning pointer)
49 typedef int NODEREF (*func3)(int); // expected-warning{{'noderef' can only be used on an array or p…
50 typedef int NODEREF *(*func4)(int);
53 int NODEREF i_arr[10]; // ok in Arrays()
54 int NODEREF i_arr2[10][10]; // ok in Arrays()
55 int NODEREF *i_arr3[10]; // ok in Arrays()
56 int NODEREF i_arr4[] = {1, 2}; in Arrays()
60 int NODEREF(i_ptr[10]); in ParenArrays() local
61 int NODEREF(i_ptr2[10])[10]; in ParenArrays()
64 typedef int NODEREF *(*func5[10])(int);
67 void func6(int NODEREF x); // expected-warning{{'noderef' can only be used on an array or pointer t…
68 void func7(int NODEREF *x);
69 void func8() NODEREF;
73 int NODEREF &y = x; // expected-warning{{'noderef' can only be used on an array or pointer type}} in References()
75 int NODEREF *&a = xp; // ok (reference to a NODEREF *) in References()
76 …int *NODEREF &b = xp; // expected-warning{{'noderef' can only be used on an array or pointer type}} in References()
80 …typedef int NODEREF (^IntBlock)(); // expected-warning{{'noderef' can only be used on an array or … in BlockPointers()
86 int NODEREF *member2;
87 int NODEREF member3; // expected-warning{{'noderef' can only be used on an array or pointer type}}
93 …A(NODEREF int *x) : member4(x) {} // expected-warning{{casting to dereferenceable pointer removes … in A()
99 …int NODEREF A::*var = &A::member; // expected-warning{{'noderef' can only be used on an array or p… in MemberPointer()
102 int MethodCall(NODEREF A *a) { // expected-note{{a declared here}} in MethodCall()
106 int ChildCall(NODEREF Child *child) { // expected-note{{child declared here}} in ChildCall()
110 std::type_info TypeIdPolymorphic(NODEREF A *a) { // expected-note{{a declared here}} in TypeIdPolymorphic()
118 std::type_info TypeIdNonPolymorphic(NODEREF SimpleClass *simple) { in TypeIdNonPolymorphic()
124 Ty NODEREF *member;
125 Ty NODEREF member2; // expected-warning{{'noderef' can only be used on an array or pointer type}}
129 auto l = [](int NODEREF *x){ // expected-note{{x declared here}} in test_lambdas()
134 int NODEREF *glob_ptr; // expected-note{{glob_ptr declared here}}
137 void cast_from_void_ptr(NODEREF void *x) { in cast_from_void_ptr()
146 NODEREF int *x; in conversion_sequences()
155 NODEREF Child *child; in conversion_sequences()
159 int *static_cast_from_same_ptr_type(NODEREF int *x) { in static_cast_from_same_ptr_type()
163 A *dynamic_cast_up(NODEREF Child *child) { in dynamic_cast_up()
167 Child *dynamic_cast_down(NODEREF A *a) { in dynamic_cast_down()
171 A *dynamic_cast_side(NODEREF A *a) { in dynamic_cast_side()
175 void *dynamic_cast_to_void_ptr(NODEREF A *a) { in dynamic_cast_to_void_ptr()
179 int *const_cast_check(NODEREF const int *x) { in const_cast_check()
183 const int *const_cast_check(NODEREF int *x) { in const_cast_check()