Lines Matching full:used

12 void typedefPointer(TYPEDEF_PTR p) {  // expected-warning{{'p' is an unsafe pointer used for buffer access}}
13 if (++p) { // expected-note{{used in pointer arithmetic here}}
18 void macroPointer(MACRO_PTR p) { // expected-warning{{'p' is an unsafe pointer used for buffer access}}
19 if (++p) { // expected-note{{used in pointer arithmetic here}}
28 // `_Atomic` is used, we cannot get valid source locations of the
32 void typeLocSourceLocationInvalid(_Atomic unsigned *map) { // expected-warning{{'map' is an unsafe pointer used for buffer access}}
33 map[5] = 5; // expected-note{{used in buffer access here}}
37 void typeLocSourceLocationValid(unsigned *map) { // expected-warning{{'map' is an unsafe pointer used for buffer access}} \
39 map[5] = 5; // expected-note{{used in buffer access here}}
49 A(int * p) { // expected-warning{{'p' is an unsafe pointer used for buffer access}}
51 tmp = p[5]; // expected-note{{used in buffer access here}}
55 void foo(int *p) { // expected-warning{{'p' is an unsafe pointer used for buffer access}}
57 tmp = p[5]; // expected-note{{used in buffer access here}}
61 int operator+(int * p) { // expected-warning{{'p' is an unsafe pointer used for buffer access}}
63 tmp = p[5]; // expected-note{{used in buffer access here}}
70 auto Lamb = [&](int *p) // expected-warning{{'p' is an unsafe pointer used for buffer access}}
73 tmp = p[5]; // expected-note{{used in buffer access here}}
80 void template_foo(T * p) { // expected-warning{{'p' is an unsafe pointer used for buffer access}}
82 tmp = p[5]; // expected-note{{used in buffer access here}}
91 void vararg_foo(int * p...) { // expected-warning{{'p' is an unsafe pointer used for buffer access}}
93 tmp = p[5]; // expected-note{{used in buffer access here}}
97 constexpr int constexpr_foo(int * p) { // expected-warning{{'p' is an unsafe pointer used for buffer access}}
98 return p[5]; // expected-note{{used in buffer access here}}
102 void fn_with_try_block(int* p) // expected-warning{{'p' is an unsafe pointer used for buffer access}}
108 tmp = p[5]; // expected-note{{used in buffer access here}}
117 // expected-warning@-1{{'a' is an unsafe pointer used for buffer access}}
118 // expected-warning@-2{{'b' is an unsafe pointer used for buffer access}}
121 tmp = a[5][5] + b[5][5]; // expected-note2{{used in buffer access here}}
126 // expected-warning@-1{{'x' is an unsafe pointer used for buffer access}}
128 tmp = x[5]; // expected-note{{used in buffer access here}}
134 // expected-warning@-1{{'x' is an unsafe pointer used for buffer access}}
136 tmp = x[5]; // expected-note{{used in buffer access here}}
143 void macroIdentifier(int * MACRO_NAME) { // expected-warning{{'MyName' is an unsafe pointer used for buffer access}}
144 if (++MyName){} // expected-note{{used in pointer arithmetic here}}
149 expected-warning{{'p' is an unsafe pointer used for buffer access}}
150 p[5] = 5; // expected-note{{used in buffer access here}}