Home
last modified time | relevance | path

Searched refs:SimpleSmartPointer (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/clang/docs/analyzer/checkers/
H A Dmismatched_deallocator_example.cpp29 struct SimpleSmartPointer { struct
32 explicit SimpleSmartPointer(T *p = 0) : ptr(p) {} in SimpleSmartPointer() function
33 ~SimpleSmartPointer() { in ~SimpleSmartPointer() argument
39 SimpleSmartPointer<int> a((int *)malloc(4)); in test()
/llvm-project-15.0.7/clang/test/Analysis/
H A DMismatchedDeallocator-checker-test.mm204 struct SimpleSmartPointer { struct
207 explicit SimpleSmartPointer(T *p = 0) : ptr(p) {} argument
208 ~SimpleSmartPointer() {
217 SimpleSmartPointer<int> a(new int);
221 SimpleSmartPointer<int> a(new int[4]);
227 SimpleSmartPointer<int> a(new int);
231 SimpleSmartPointer<int> a((int *)malloc(4));