Lines Matching refs:memset

3 extern "C" void *memset(void *, int, unsigned);
37 memset(&s, 0, sizeof(&s)); // \
38 // expected-warning {{'memset' call operates on objects of type 'S' while the size is based on a different type 'S *'}} expected-note{{did you mean to remove the addressof in the argument to 'sizeof' (and multiply it by the number of elements)?}}
39 memset(ps, 0, sizeof(ps)); // \
40 // expected-warning {{'memset' call operates on objects of type 'S' while the size is based on a different type 'S *'}} expected-note{{did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?}}
41 memset(ps2, 0, sizeof(ps2)); // \
42 // expected-warning {{'memset' call operates on objects of type 'S' while the size is based on a different type 'PS' (aka 'S *')}} expected-note{{did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?}}
43 memset(ps2, 0, sizeof(typeof(ps2))); // \
44 // expected-warning {{argument to 'sizeof' in 'memset' call is the same pointer type}}
45 memset(ps2, 0, sizeof(PS)); // \
46 // expected-warning {{argument to 'sizeof' in 'memset' call is the same pointer type}}
47 memset(heap_buffer, 0, sizeof(heap_buffer)); // \
48 // expected-warning {{'memset' call operates on objects of type 'char' while the size is based on a different type 'char *'}} expected-note{{did you mean to provide an explicit length?}}
61 memset((void*)&s, 0, sizeof(&s));
62 memset(&s, 0, sizeof(s));
63 memset(&s, 0, sizeof(S));
64 memset(&s, 0, sizeof(const S));
65 memset(&s, 0, sizeof(volatile S));
66 memset(&s, 0, sizeof(volatile const S));
67 memset(&foo, 0, sizeof(CFoo));
68 memset(&foo, 0, sizeof(VFoo));
69 memset(&foo, 0, sizeof(CVFoo));
70 memset(ps, 0, sizeof(*ps));
71 memset(ps2, 0, sizeof(*ps2));
72 memset(ps2, 0, sizeof(typeof(*ps2)));
73 memset(arr, 0, sizeof(arr));
74 memset(parr, 0, sizeof(parr));
97 memset(&iarr[0], 0, sizeof iarr);
100 memset(&iparr[0], 0, sizeof iparr);
102 memset(m, 0, sizeof(Mat));
109 memset(({
118 void memset(void* s, char c, int n);
120 memset(i, 0, sizeof(i));