Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:memcpy

5 extern "C" void *memcpy(void *s1, const void *s2, unsigned n);
22 memcpy(&dest, &source, sizeof(dest));
50 memcpy(&s, 0, sizeof(&s)); // \
51 // expected-warning {{argument to 'sizeof' in 'memcpy' call is the same expression as the destination}}
52 memcpy(0, &s, sizeof(&s)); // \
53 // expected-warning {{argument to 'sizeof' in 'memcpy' call is the same expression as the source}}
76 memcpy(&foo, &const_foo, sizeof(Foo));
77 memcpy((void*)&s, 0, sizeof(&s));
78 memcpy(0, (void*)&s, sizeof(&s));
80 memcpy(&cptr, buffer, sizeof(cptr));
81 memcpy((char*)&cptr, buffer, sizeof(cptr));
84 memcpy(&foo, &cfoo, sizeof(Foo));
86 memcpy(0, &arr, sizeof(arr));
88 memcpy(0, &arr, sizeof(Buff));
105 memcpy(&foo, &arr, sizeof(Foo));
106 memcpy(&arr, &foo, sizeof(Foo));