Lines Matching full:malloc
1 // RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc,debug.ExprInspection -analyzer-store region -std=c++11 -verify %s
7 extern "C" void *malloc(size_t);
31 int *x = (int *)malloc(sizeof(int));
55 int *x = (int *)malloc(sizeof(int));
85 return new PtrWrapper(static_cast<int *>(malloc(4))); // no-warning
90 new (w) PtrWrapper(static_cast<int *>(malloc(4))); // no-warning
95 return new (int *)(static_cast<int *>(malloc(4))); // no-warning
100 new (p) (int *)(static_cast<int *>(malloc(4))); // no-warning
119 // bounded with unix.Malloc
137 // unix.Malloc does not know about operators new/delete.
139 int *x = (int *)malloc(sizeof(int));
144 int *p = (int *)malloc(sizeof(int));
150 int *p = (int *)malloc(sizeof(int));
156 int *p = (int *)malloc(sizeof(int));
162 int *p = (int *)malloc(sizeof(int));