Home
last modified time | relevance | path

Searched refs:NewArray (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dwrappers_cpp.cpp28 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray); in operator new[]()
36 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray); in operator new[]()
43 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray, in operator new[]()
53 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray, in operator new[]()
61 Allocator.deallocate(ptr, scudo::Chunk::Origin::NewArray); in operator delete[]()
69 Allocator.deallocate(ptr, scudo::Chunk::Origin::NewArray); in operator delete[]()
75 Allocator.deallocate(ptr, scudo::Chunk::Origin::NewArray, size); in operator delete[]()
84 Allocator.deallocate(ptr, scudo::Chunk::Origin::NewArray, 0, in operator delete[]()
94 Allocator.deallocate(ptr, scudo::Chunk::Origin::NewArray, 0, in operator delete[]()
104 Allocator.deallocate(ptr, scudo::Chunk::Origin::NewArray, size, in operator delete[]()
H A Dchunk.h58 NewArray = 2, enumerator
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp5847 StatementMatcher NewArray = cxxNewExpr(isArray()); in TEST() local
5849 EXPECT_TRUE(matches("void foo() { int *Ptr = new int[10]; }", NewArray)); in TEST()
5850 EXPECT_TRUE(notMatches("void foo() { int *Ptr = new int; }", NewArray)); in TEST()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDecl.cpp4333 const ArrayType *NewArray = Context.getAsArrayType(New->getType()); in MergeVarDeclTypes() local
4338 if (!NewArray->isIncompleteArrayType() && !NewArray->isDependentType()) { in MergeVarDeclTypes()
4350 if (OldArray->isIncompleteArrayType() && NewArray->isArrayType()) { in MergeVarDeclTypes()
4352 NewArray->getElementType())) in MergeVarDeclTypes()
4358 else if (OldArray->isArrayType() && NewArray->isIncompleteArrayType()) { in MergeVarDeclTypes()
4360 NewArray->getElementType())) in MergeVarDeclTypes()