|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/ADT/APFloat.h 614 new (this) DoubleAPFloat(std::move(RHS));
709 new (&IEEE) IEEEFloat(Semantics, std::forward<ArgTypes>(Args)...);
713 new (&Double) DoubleAPFloat(Semantics, std::forward<ArgTypes>(Args)...);
733 new (this) IEEEFloat(RHS.IEEE);
737 new (this) DoubleAPFloat(RHS.Double);
745 new (this) IEEEFloat(std::move(RHS.IEEE));
749 new (this) DoubleAPFloat(std::move(RHS.Double));
764 new (this) Storage(RHS);
778 new (this) Storage(std::move(RHS));
include/llvm/ADT/DenseMap.h 351 ::new (&B->getFirst()) KeyT(EmptyKey);
380 ::new (&DestBucket->getSecond()) ValueT(std::move(B->getSecond()));
405 ::new (&getBuckets()[i].getFirst())
409 ::new (&getBuckets()[i].getSecond())
520 ::new (&TheBucket->getSecond()) ValueT(std::forward<ValueArgs>(Values)...);
530 ::new (&TheBucket->getSecond()) ValueT(std::move(Value));
930 ::new (&RHSB->getSecond()) ValueT(std::move(LHSB->getSecond()));
933 ::new (&LHSB->getSecond()) ValueT(std::move(RHSB->getSecond()));
959 ::new (&NewB->getFirst()) KeyT(std::move(OldB->getFirst()));
963 ::new (&NewB->getSecond()) ValueT(std::move(OldB->getSecond()));
971 new (SmallSide.getLargeRep()) LargeRep(std::move(TmpRep));
994 new (getLargeRep()) LargeRep(allocateBuckets(other.getNumBuckets()));
1003 new (getLargeRep()) LargeRep(allocateBuckets(InitBuckets));
1030 ::new (&TmpEnd->getFirst()) KeyT(std::move(P->getFirst()));
1031 ::new (&TmpEnd->getSecond()) ValueT(std::move(P->getSecond()));
1041 new (getLargeRep()) LargeRep(allocateBuckets(AtLeast));
1051 new (getLargeRep()) LargeRep(allocateBuckets(AtLeast));
include/llvm/ADT/FunctionExtras.h 163 new (LHSCallableAddr)
229 new (this) unique_function(std::move(RHS));
248 new (CallableAddr) CallableT(std::move(Callable));
include/llvm/ADT/ImmutableList.h 189 new (L) ListTy(std::forward<ElemT>(Head), TailImpl);
include/llvm/ADT/ImmutableSet.h 473 new (T) TreeTy(this, L, R, V, incrementHeight(L,R));
include/llvm/ADT/IntervalMap.h 1011 return new(allocator.template Allocate<NodeT>()) NodeT();
1025 new (&rootBranchData()) RootBranchData();
1031 new(&rootLeaf()) RootLeaf();
1045 new(&rootLeaf()) RootLeaf();
include/llvm/ADT/Optional.h 89 ::new ((void *)std::addressof(value)) T(std::forward<Args>(args)...);
97 ::new ((void *)std::addressof(value)) T(y);
106 ::new ((void *)std::addressof(value)) T(std::move(y));
117 ::new ((void *)std::addressof(value)) T(other.value);
131 ::new ((void *)std::addressof(value)) T(std::move(other.value));
189 ::new ((void *)std::addressof(value)) T(std::forward<Args>(args)...);
197 ::new ((void *)std::addressof(value)) T(y);
206 ::new ((void *)std::addressof(value)) T(std::move(y));
include/llvm/ADT/ScopedHashTable.h 70 new (New) ScopedHashTableVal(key, val);
include/llvm/ADT/SmallSet.h 70 new (&SetIter) SetIterTy(Other.SetIter);
79 new (&SetIter) SetIterTy(std::move(Other.SetIter));
106 new (&SetIter) SetIterTy(std::move(Other.SetIter));
include/llvm/ADT/SmallVector.h 214 ::new ((void*) this->end()) T(Elt);
221 ::new ((void*) this->end()) T(::std::move(Elt));
352 new (&*I) T();
482 ::new ((void*) this->end()) T(::std::move(this->back()));
511 ::new ((void*) this->end()) T(std::move(this->back()));
644 ::new ((void *)this->end()) T(std::forward<ArgTypes>(Args)...);
include/llvm/ADT/StringMap.h 192 new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
include/llvm/Analysis/LazyCallGraph.h 1168 return new (SCCBPA.Allocate()) SCC(std::forward<Ts>(Args)...);
1175 return new (RefSCCBPA.Allocate()) RefSCC(std::forward<Ts>(Args)...);
include/llvm/Analysis/LoopInfo.h 894 return new (Storage) LoopT(std::forward<ArgsTy>(Args)...);
include/llvm/Analysis/ValueLattice.h 103 new (&Range) ConstantRange(Other.Range);
233 new (&Range) ConstantRange(std::move(NewR));
include/llvm/CodeGen/DIE.h 385 new (reinterpret_cast<void *>(Val.buffer)) T(V);
include/llvm/CodeGen/GlobalISel/IRTranslator.h 121 auto *VRegList = new (VRegAlloc.Allocate()) VRegListT();
130 auto *OffsetList = new (OffsetAlloc.Allocate()) OffsetListT();
include/llvm/CodeGen/MachineFunction.h 103 return new (Allocator.Allocate<Ty>()) Ty(MF);
include/llvm/CodeGen/MachineInstr.h 149 auto *Result = new (Allocator.Allocate(
include/llvm/CodeGen/SelectionDAG.h 351 return new (NodeAllocator.template Allocate<SDNodeT>())
include/llvm/CodeGen/SlotIndexes.h 339 new (entry) IndexListEntry(mi, index);
include/llvm/Demangle/MicrosoftDemangle.h 103 return new (PP) T(std::forward<Args>(ConstructorArgs)...);
108 return new (Head->Buf) T(std::forward<Args>(ConstructorArgs)...);
include/llvm/ExecutionEngine/JITLink/JITLink.h 305 new (Sym) Symbol(Base, 0, Name, Size, Linkage::Weak, S, IsLive, false);
316 new (Sym) Symbol(Base, 0, Name, Size, Linkage::Strong, Scope::Default,
328 new (Sym) Symbol(Base, 0, Name, Size, L, S, IsLive, false);
338 new (Sym) Symbol(Base, Offset, StringRef(), Size, Linkage::Strong,
350 new (Sym) Symbol(Base, Offset, Name, Size, L, S, IsLive, IsCallable);
624 new (A) Addressable(std::forward<ArgTs>(Args)...);
635 new (B) Block(std::forward<ArgTs>(Args)...);
include/llvm/ProfileData/InstrProf.h 1078 return std::unique_ptr<Summary>(new (::operator new(TotalSize))
include/llvm/Support/Error.h 463 new (getErrorStorage()) error_type(Err.takePayload());
483 new (getStorage()) storage_type(std::forward<OtherT>(Val));
602 new (getStorage()) storage_type(std::move(*Other.getStorage()));
604 new (getErrorStorage()) error_type(std::move(*Other.getErrorStorage()));
614 new (this) Expected(std::move(Other));
include/llvm/Support/ErrorOr.h 79 new (getErrorStorage()) std::error_code(make_error_code(ErrorCode));
83 new (getErrorStorage()) std::error_code(EC);
91 new (getStorage()) storage_type(std::forward<OtherT>(Val));
181 new (getStorage()) storage_type(*Other.getStorage());
185 new (getErrorStorage()) std::error_code(Other.getError());
213 new (getStorage()) storage_type(std::move(*Other.getStorage()));
217 new (getErrorStorage()) std::error_code(Other.getError());
227 new (this) ErrorOr(std::move(Other));
include/llvm/Support/JSON.h 454 new (reinterpret_cast<T *>(Union.buffer)) T(std::forward<U>(V)...);
include/llvm/Support/OnDiskHashTable.h 130 insert(Buckets, NumBuckets, new (BA.Allocate()) Item(Key, Data, InfoObj));
include/llvm/Support/YAMLTraits.h 1313 BufPtr = new (&Buffer) TNorm(io, Obj);
1316 BufPtr = new (&Buffer) TNorm(io);
1345 BufPtr = new (&Buffer) TNorm(io, Obj);
1349 new (BufPtr) TNorm(io);
lib/Analysis/LazyCallGraph.cpp 1557 return *new (MappedN = BPA.Allocate()) Node(*this, F);
lib/CodeGen/ExecutionDomainFix.cpp 26 DomainValue *dv = Avail.empty() ? new (Allocator.Allocate()) DomainValue
lib/CodeGen/LiveIntervalUnion.cpp 191 new(LIUs + i) LiveIntervalUnion(Alloc);
lib/CodeGen/MachineBlockPlacement.cpp 2565 new (ChainAllocator.Allocate()) BlockChain(BlockToChain, BB);
lib/CodeGen/MachineFunction.cpp 329 return new (InstructionRecycler.Allocate<MachineInstr>(Allocator))
337 return new (InstructionRecycler.Allocate<MachineInstr>(Allocator))
388 return new (BasicBlockRecycler.Allocate<MachineBasicBlock>(Allocator))
lib/CodeGen/MachineInstr.cpp 263 MachineOperand *NewMO = new (Operands + OpNo) MachineOperand(Op);
lib/CodeGen/MachineOutliner.cpp 280 SuffixTreeNode *N = new (NodeAllocator.Allocate())
304 new (NodeAllocator.Allocate()) SuffixTreeNode(StartIdx, E, Root);
lib/CodeGen/MachineRegisterInfo.cpp 348 new (Dst) MachineOperand(*Src);
lib/Demangle/ItaniumDemangle.cpp 272 BlockList = new (NewMeta) BlockMeta{BlockList, 0};
280 BlockList->Next = new (NewMeta) BlockMeta{BlockList->Next, 0};
286 : BlockList(new (InitialBuffer) BlockMeta{nullptr, 0}) {}
307 BlockList = new (InitialBuffer) BlockMeta{nullptr, 0};
320 return new (Alloc.allocate(sizeof(T)))
lib/ExecutionEngine/ExecutionEngine.cpp 112 new(RawMemory) GVMemoryBlock(GV);
lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h 162 new (Sym) NormalizedSymbol(std::forward<ArgTs>(Args)...);
lib/IR/Attributes.cpp 760 PA = new (Mem) AttributeSetNode(SortedAttrs);
963 PA = new (Mem) AttributeListImpl(C, AttrSets);
lib/IR/DataLayout.cpp 631 new (L) StructLayout(Ty, *this);
lib/IR/Function.cpp 290 new (Arguments + i) Argument(ArgTy, "", const_cast<Function *>(this), i);
lib/IR/LegacyPassManager.cpp 688 Node = new (AUFoldingSetNodeAllocator.Allocate()) AUFoldingSetNode(AU);
lib/IR/Metadata.cpp 488 (void)new (O - 1) MDOperand;
lib/IR/SafepointIRVerifier.cpp 542 BasicBlockState *BBS = new (BSAllocator.Allocate()) BasicBlockState;
lib/IR/Type.cpp 318 new (FT) FunctionType(ReturnType, Params, isVarArg);
lib/IR/Use.cpp 66 new (Stop) Use(tags[Done++]);
73 new (Stop) Use(stopTag);
77 new (Stop) Use(PrevPtrTag(Count & 1));
lib/IR/User.cpp 54 (void) new(End) Use::UserRef(const_cast<User*>(this), 1);
lib/MC/MCContext.cpp 309 return Entry = new (MachOAllocator.Allocate()) MCSectionMachO(
353 auto *Ret = new (ELFAllocator.Allocate()) MCSectionELF(
459 MCSectionCOFF *Result = new (COFFAllocator.Allocate()) MCSectionCOFF(
526 MCSectionWasm *Result = new (WasmAllocator.Allocate())
558 MCSectionXCOFF *Result = new (XCOFFAllocator.Allocate())
573 return *new (MCSubtargetAllocator.Allocate()) MCSubtargetInfo(STI);
lib/Object/ModuleSymbolTable.cpp 66 SymTab.push_back(new (AsmSymbols.Allocate()) AsmSymbol(Name, Flags));
lib/ObjectYAML/MinidumpEmitter.cpp 67 T *Object = new (Temporaries.Allocate<T>()) T(std::forward<Types>(Args)...);
lib/ProfileData/InstrProf.cpp 756 (ValueProfData *)(new (::operator new(TotalSizeInBytes)) ValueProfData());
851 return std::unique_ptr<ValueProfData>(new (::operator new(TotalSize))
lib/Support/APFloat.cpp 3941 new (this) DoubleAPFloat(RHS);
4453 new (&IEEE) IEEEFloat(std::move(F));
4458 new (&Double)
lib/Support/ItaniumManglingCanonicalizer.cpp 115 return {new (RawAlloc.Allocate(sizeof(T), alignof(T)))
134 NodeHeader *New = new (Storage) NodeHeader;
135 T *Result = new (New->getNode()) T(std::forward<Args>(As)...);
lib/Support/MemoryBuffer.cpp 295 auto *Ret = new (Mem) MemBuffer(StringRef(Buf, Size), true);
lib/TableGen/Record.cpp 191 RecordRecTy *Ty = new(Mem) RecordRecTy(Classes.size());
354 BitsInit *I = new(Mem) BitsInit(Range.size());
585 ListInit *I = new(Mem) ListInit(Range.size(), EltTy);
1605 VarDefInit *I = new(Mem) VarDefInit(Class, Args.size());
1785 CondOpInit *I = new(Mem) CondOpInit(CondRange.size(), Ty);
1906 DagInit *I = new(Mem) DagInit(V, VN, ArgRange.size(), NameRange.size());
lib/Target/AMDGPU/AMDGPULibFunc.cpp 1030 new (this) AMDGPULibFunc(F);
lib/Target/AMDGPU/GCNILPSched.cpp 286 PendingQueue.push_front(*new (Alloc.Allocate()) Candidate(PredSU));
309 *new (Alloc.Allocate()) Candidate(const_cast<SUnit*>(SU)));
lib/Target/AMDGPU/GCNIterativeScheduler.cpp 306 new (Alloc.Allocate())
lib/Target/AMDGPU/GCNMinRegStrategy.cpp 227 RQ.push_front(*new (Alloc.Allocate()) Candidate(SuccSU, Priority));
243 RQ.push_back(*new (Alloc.Allocate()) Candidate(SU, StepNo));
lib/Target/AMDGPU/SIMachineFunctionInfo.h 131 ::new ((void *)std::addressof(RegisterName))
140 ::new ((void *)std::addressof(RegisterName))
lib/Target/ARM/ARMLoadStoreOptimizer.cpp 1095 MergeCandidate *Candidate = new(Allocator.Allocate()) MergeCandidate;
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp 599 std::unique_ptr<PPCOperand> Op(new (Mem) PPCOperand(Token));
lib/Transforms/InstCombine/InstCombineAddSub.cpp 234 new(P) APFloat(C);
247 new(P) APFloat(Sem, IntVal);
249 new(P) APFloat(Sem, 0 - IntVal);
projects/compiler-rt/lib/xray/xray_allocator.h 143 new (A + (--N)) T(std::forward<U>(Us)...);
projects/compiler-rt/lib/xray/xray_fdr_logging.cpp 135 new (reinterpret_cast<ThreadLocalData *>(&TLDStorage)) ThreadLocalData{};
478 new (LWStorage) FDRLogWriter(TLD.Buffer);
485 new (CStorage)
667 new (BQ) BufferQueue(BufferSize, BufferMax, Success);
projects/compiler-rt/lib/xray/xray_function_call_trie.h 172 new (&NodeAllocatorStorage)
177 new (&RootAllocatorStorage)
182 new (&ShadowStackAllocatorStorage) ShadowStackAllocatorType(
187 new (&NodeIdPairAllocatorStorage) NodeIdPairAllocatorType(
194 new (&NodeAllocatorStorage) NodeAllocatorType(Max);
198 new (&RootAllocatorStorage) RootAllocatorType(Max);
202 new (&ShadowStackAllocatorStorage) ShadowStackAllocatorType(Max);
206 new (&NodeIdPairAllocatorStorage) NodeIdPairAllocatorType(Max);
246 new (&NodeAllocatorStorage)
258 new (&RootAllocatorStorage)
270 new (&ShadowStackAllocatorStorage)
282 new (&NodeIdPairAllocatorStorage)
projects/compiler-rt/lib/xray/xray_profile_collector.cpp 343 new (&BufferQueueStorage)
359 new (&ProfileBufferArrayAllocatorStorage)
364 new (&ProfileBuffersStorage) ProfileBufferArray(*ProfileBuffersAllocator);
368 new (&ThreadDataAllocatorStorage)
372 new (&ThreadDataArrayStorage) ThreadDataArray(*TDAllocator);
389 new (&FileHeaderStorage) XRayProfilingFileHeader{};
projects/compiler-rt/lib/xray/xray_profiling.cpp 128 new (&AllocatorsStorage) FunctionCallTrie::Allocators(
140 new (&FunctionCallTrieStorage)
393 new (&BufferQueueStorage)
projects/compiler-rt/lib/xray/xray_segmented_array.h 257 new (SegmentBlock.Data) Segment{&SentinelSegment, &SentinelSegment, {0}};
377 new (AlignedOffset) T{std::forward<Args>(args)...};
409 new (AlignedOffset) T(E);
projects/compiler-rt/lib/xray/xray_utils.cpp 185 new (LW) LogWriter(Fd);
tools/clang/include/clang/AST/APValue.h 602 new ((void*)Data.buffer) APSInt(1);
607 new ((void*)(char*)Data.buffer) APFloat(0.0);
612 new ((void *)(char *)Data.buffer) APFixedPoint(std::move(FX));
617 new ((void*)(char*)Data.buffer) Vec();
622 new ((void*)(char*)Data.buffer) ComplexAPSInt();
627 new ((void*)(char*)Data.buffer) ComplexAPFloat();
634 new ((void*)(char*)Data.buffer) StructData(B, M);
639 new ((void*)(char*)Data.buffer) UnionData();
646 new ((void*)(char*)Data.buffer) AddrLabelDiffData();
tools/clang/include/clang/AST/ASTContext.h 600 new (Storage.buffer) DynTypedNode(N);
604 new (Storage.buffer) ArrayRef<DynTypedNode>(A);
tools/clang/include/clang/AST/ASTTypeTraits.h 407 new (Result.Storage.buffer) const void *(&Node);
427 new (Result.Storage.buffer) const void *(&Node);
446 new (Result.Storage.buffer) T(Node);
tools/clang/include/clang/AST/ASTVector.h 165 new (End) T(Elt);
227 new (this->end()) T(this->back());
360 new (S) T(Elt);
tools/clang/include/clang/AST/DeclTemplate.h 219 new (static_cast<void *>(&storage)) TemplateParameterList(
368 ValueOrInherited = new (allocateDefaultArgStorageChain(C))
tools/clang/include/clang/Analysis/ConstructionContext.h 268 return new (CC) T(Args...);
tools/clang/include/clang/Analysis/Support/BumpVector.h 162 new (End) T(Elt);
204 new (S) T(Elt);
217 new (I) T(*E);
tools/clang/include/clang/Basic/IdentifierTable.h 533 II = new (Mem) IdentifierInfo();
564 II = new (Mem) IdentifierInfo();
tools/clang/include/clang/Sema/DeclSpec.h 1653 new (I.Mem.ScopeMem) CXXScopeSpec(SS);
tools/clang/include/clang/Sema/DelayedDiagnostic.h 155 new (&DD.getAccessData()) AccessedEntity(Entity);
tools/clang/include/clang/Sema/Overload.h 588 new (this) ImplicitConversionSequence(Other);
1045 new (&Conversions[I]) ImplicitConversionSequence();
tools/clang/include/clang/Sema/ParsedAttr.h 231 new (getAvailabilityData()) detail::AvailabilityData(
266 new (&ExtraData.MatchingCType) ParsedType(matchingCType);
281 new (&getTypeBuffer()) ParsedType(typeArg);
295 new (&getPropertyDataBuffer()) detail::PropertyData(getterId, setterId);
662 return add(new (memory) ParsedAttr(attrName, attrRange, scopeName, scopeLoc,
675 return add(new (memory) ParsedAttr(
688 return add(new (memory) ParsedAttr(attrName, attrRange, scopeName, scopeLoc,
699 return add(new (memory) ParsedAttr(attrName, attrRange, scopeName, scopeLoc,
713 return add(new (memory) ParsedAttr(attrName, attrRange, scopeName, scopeLoc,
723 return add(new (memory) ParsedAttr(attrName, attrRange, scopeName, scopeLoc,
tools/clang/include/clang/Sema/ParsedTemplate.h 201 TemplateIdAnnotation *TemplateId = new (llvm::safe_malloc(
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h 506 new (Dest) SimpleFunctionCall(*this);
541 void cloneTo(void *Dest) const override { new (Dest) BlockCall(*this); }
683 void cloneTo(void *Dest) const override { new (Dest) CXXMemberCall(*this); }
725 new (Dest) CXXMemberOperatorCall(*this);
791 void cloneTo(void *Dest) const override {new (Dest) CXXDestructorCall(*this);}
836 void cloneTo(void *Dest) const override { new (Dest) CXXConstructorCall(*this); }
881 void cloneTo(void *Dest) const override { new (Dest) CXXAllocatorCall(*this); }
952 void cloneTo(void *Dest) const override { new (Dest) ObjCMethodCall(*this); }
1172 return new (allocate()) T(A, St, LCtx);
1179 return new (allocate()) T(A1, A2, St, LCtx);
1196 return new (allocate()) T(A1, A2, A3, A4, St, LCtx);
tools/clang/lib/AST/APValue.cpp 822 new ((void*)(char*)Data.buffer) LV();
828 new ((void*)(char*)Data.buffer) Arr(InitElts, Size);
835 MemberPointerData *MPD = new ((void*)(char*)Data.buffer) MemberPointerData;
tools/clang/lib/AST/ASTContext.cpp 1398 Result = new (Mem) AttrVec;
2687 new (TInfo) TypeSourceInfo(T);
3213 auto *New = new (Mem)
3890 new (FTP) FunctionProtoType(ResultTy, ArgArray, Canonical, newEPI);
4229 = new (Mem) TemplateSpecializationType(Template, Args, CanonType,
4268 Spec = new (Mem) TemplateSpecializationType(CanonTemplate,
4302 T = new (Mem) ElaboratedType(Keyword, NNS, NamedType, Canon, OwnedTagDecl);
4430 T = new (Mem) DependentTemplateSpecializationType(Keyword, NNS,
4633 new (mem) ObjCObjectTypeImpl(canonical, baseType, typeArgs, protocols,
4739 auto *newType = new (mem) ObjCTypeParamType(Decl, Canonical, protocols);
4835 new (Mem) ObjCObjectPointerType(Canonical, ObjectT);
4860 auto *T = new (Mem) ObjCInterfaceType(Decl);
7716 auto *OT = new (memory) OverloadedTemplateStorage(size);
tools/clang/lib/AST/Decl.cpp 3665 return new (Buffer) DependentFunctionTemplateSpecializationInfo(Ts, TArgs);
3681 new (&ArgsArray[I]) TemplateArgumentLoc(TArgs[I]);
tools/clang/lib/AST/DeclBase.cpp 109 return new (Buffer) Module*(ParentModule) + 1;
tools/clang/lib/AST/DeclCXX.cpp 2915 new (Trail + I) NamedDecl*(nullptr);
3041 new (Trail + I) BindingDecl*(nullptr);
tools/clang/lib/AST/DeclGroup.cpp 24 new (Mem) DeclGroup(NumDecls, Decls);
tools/clang/lib/AST/DeclObjC.cpp 1441 return new (mem) ObjCTypeParamList(lAngleLoc, typeParams, rAngleLoc);
tools/clang/lib/AST/DeclTemplate.cpp 86 return new (Mem) TemplateParameterList(TemplateLoc, LAngleLoc, Params,
575 new (&TypesAndInfos[I].first) QualType(ExpandedTypes[I]);
718 return new (Mem) TemplateArgumentList(Args);
733 return new (Mem) FunctionTemplateSpecializationInfo(
tools/clang/lib/AST/Expr.cpp 271 ::new (getTrailingObjects<APValue>()) APValue();
507 new (getTrailingObjects<NestedNameSpecifierLoc>())
tools/clang/lib/AST/Interp/Descriptor.cpp 19 new (Ptr) T();
30 new (DstPtr) T(std::move(*SrcPtr));
36 new (&reinterpret_cast<T *>(Ptr)[I]) T();
52 new (DstPtr) T(std::move(*SrcPtr));
291 return new (malloc(Size)) InitMap(N);
tools/clang/lib/AST/Interp/EvalEmitter.cpp 54 auto *B = new (Memory.get()) Block(D, /*isStatic=*/false);
tools/clang/lib/AST/Interp/Interp.h 691 new (&Ptr.deref<T>()) T(Value);
702 new (&Ptr.deref<T>()) T(Value);
713 new (&Ptr.deref<T>()) T(Value);
tools/clang/lib/AST/Interp/InterpFrame.cpp 30 Block *B = new (localBlock(Local.Offset)) Block(Local.Desc);
172 auto *B = new (Memory.get()) Block(Desc.second);
tools/clang/lib/AST/Interp/InterpStack.cpp 36 StackChunk *Next = new (malloc(ChunkSize)) StackChunk(Chunk);
tools/clang/lib/AST/Interp/InterpStack.h 31 new (grow(aligned_size<T>())) T(std::forward<Tys>(Args)...);
tools/clang/lib/AST/Interp/InterpState.cpp 64 auto *D = new (Memory) DeadBlock(DeadBlocks, B);
tools/clang/lib/AST/OpenMPClause.cpp 272 new (Mem) OMPOrderedClause(Num, NumLoops, StartLoc, LParenLoc, EndLoc);
283 auto *Clause = new (Mem) OMPOrderedClause(NumLoops);
329 new (Mem) OMPPrivateClause(StartLoc, LParenLoc, EndLoc, VL.size());
338 return new (Mem) OMPPrivateClause(N);
360 new (Mem) OMPFirstprivateClause(StartLoc, LParenLoc, EndLoc, VL.size());
371 return new (Mem) OMPFirstprivateClause(N);
409 new (Mem) OMPLastprivateClause(StartLoc, LParenLoc, EndLoc, VL.size());
422 return new (Mem) OMPLastprivateClause(N);
432 new (Mem) OMPSharedClause(StartLoc, LParenLoc, EndLoc, VL.size());
439 return new (Mem) OMPSharedClause(N);
483 OMPLinearClause *Clause = new (Mem) OMPLinearClause(
508 return new (Mem) OMPLinearClause(NumVars);
523 OMPAlignedClause *Clause = new (Mem)
533 return new (Mem) OMPAlignedClause(NumVars);
564 new (Mem) OMPCopyinClause(StartLoc, LParenLoc, EndLoc, VL.size());
574 return new (Mem) OMPCopyinClause(N);
605 new (Mem) OMPCopyprivateClause(StartLoc, LParenLoc, EndLoc, VL.size());
616 return new (Mem) OMPCopyprivateClause(N);
654 OMPReductionClause *Clause = new (Mem) OMPReductionClause(
669 return new (Mem) OMPReductionClause(N);
707 OMPTaskReductionClause *Clause = new (Mem) OMPTaskReductionClause(
722 return new (Mem) OMPTaskReductionClause(N);
769 OMPInReductionClause *Clause = new (Mem) OMPInReductionClause(
785 return new (Mem) OMPInReductionClause(N);
795 auto *Clause = new (Mem) OMPAllocateClause(StartLoc, LParenLoc, Allocator,
804 return new (Mem) OMPAllocateClause(N);
814 new (Mem) OMPFlushClause(StartLoc, LParenLoc, EndLoc, VL.size());
821 return new (Mem) OMPFlushClause(N);
831 OMPDependClause *Clause = new (Mem)
845 return new (Mem) OMPDependClause(N, NumLoops);
930 OMPMapClause *Clause = new (Mem)
951 return new (Mem) OMPMapClause(Sizes);
982 auto *Clause = new (Mem) OMPToClause(UDMQualifierLoc, MapperId, Locs, Sizes);
998 return new (Mem) OMPToClause(Sizes);
1030 new (Mem) OMPFromClause(UDMQualifierLoc, MapperId, Locs, Sizes);
1047 return new (Mem) OMPFromClause(Sizes);
1090 OMPUseDevicePtrClause *Clause = new (Mem) OMPUseDevicePtrClause(Locs, Sizes);
1108 return new (Mem) OMPUseDevicePtrClause(Sizes);
1139 OMPIsDevicePtrClause *Clause = new (Mem) OMPIsDevicePtrClause(Locs, Sizes);
1155 return new (Mem) OMPIsDevicePtrClause(Sizes);
tools/clang/lib/AST/RecordLayoutBuilder.cpp 898 InfoSlot = new (BaseSubobjectInfoAllocator.Allocate()) BaseSubobjectInfo;
901 Info = new (BaseSubobjectInfoAllocator.Allocate()) BaseSubobjectInfo;
tools/clang/lib/AST/TemplateBase.cpp 568 return new (Mem) ASTTemplateArgumentListInfo(List);
579 new (&ArgBuffer[i]) TemplateArgumentLoc(Info[i]);
591 new (&OutArgArray[i]) TemplateArgumentLoc(Info[i]);
619 new (&OutArgArray[i]) TemplateArgumentLoc(Info[i]);
tools/clang/lib/AST/Type.cpp 2717 new (ArgBuffer++) TemplateArgument(Arg);
3472 new (TemplateArgs++) TemplateArgument(Arg);
tools/clang/lib/Analysis/AnalysisDeclContext.cpp 637 new (BV) DeclVec(BC, 10);
tools/clang/lib/Analysis/CFG.cpp 1931 return new (alloc.Allocate<LocalScope>())
4885 new (Mem) CFGBlock(NumBlockIDs++, BlkBVC, this);
tools/clang/lib/Analysis/ConstructionContext.cpp 27 return new (CC) ConstructionContextLayer(Item, Parent);
tools/clang/lib/Analysis/PathDiagnostic.cpp 434 Entry = new (Entry) PDFileEntry(NodeID);
tools/clang/lib/Analysis/RetainSummaryManager.cpp 128 new (N) CachedSummaryNode(OldSumm);
136 new (Summ) RetainSummary(OldSumm);
tools/clang/lib/Basic/IdentifierTable.cpp 672 new (SI) MultiKeywordSelector(nKeys, IIV);
tools/clang/lib/Basic/SourceManager.cpp 396 auto *Clone = new (ContentCacheAlloc.Allocate<ContentCache>()) ContentCache;
440 new (Entry) ContentCache(FileEnt);
442 new (Entry) ContentCache(OverridenFilesKeepOriginalName ? FileEnt
446 new (Entry) ContentCache(FileEnt);
462 new (Entry) ContentCache();
tools/clang/lib/CodeGen/CGCall.cpp 811 CGFunctionInfo *FI = new(buffer) CGFunctionInfo();
tools/clang/lib/CodeGen/CGCleanup.cpp 185 new (Buffer) EHCleanupScope(IsNormalCleanup,
230 EHFilterScope *filter = new (buffer) EHFilterScope(numFilters);
247 new (buffer) EHCatchScope(numHandlers, InnermostEHScope);
254 new (Buffer) EHTerminateScope(InnermostEHScope);
tools/clang/lib/CodeGen/CodeGenFunction.h 654 new (Buffer) LifetimeExtendedCleanupHeader(Header);
655 new (Buffer + sizeof(Header)) T(A...);
657 new (Buffer + sizeof(Header) + sizeof(T)) Address(ActiveFlag);
tools/clang/lib/CodeGen/EHScopeStack.h 276 Cleanup *Obj = new (Buffer) T(A...);
286 Cleanup *Obj = new (Buffer) T(std::move(A));
308 return new (Buffer) T(N, A...);
tools/clang/lib/Format/FormatTokenLexer.cpp 611 FormatTok = new (Allocator.Allocate()) FormatToken;
630 FormatTok = new (Allocator.Allocate()) FormatToken;
tools/clang/lib/Format/UnwrappedLineFormatter.cpp 951 new (Allocator.Allocate()) StateNode(InitialState, false, nullptr);
1013 StateNode *Node = new (Allocator.Allocate())
tools/clang/lib/Frontend/PrecompiledPreamble.cpp 600 new (&asFile()) TempPCHFile(std::move(File));
605 new (&asMemory()) InMemoryPreamble(std::move(Memory));
622 new (&asFile()) TempPCHFile(std::move(Other.asFile()));
625 new (&asMemory()) InMemoryPreamble(std::move(Other.asMemory()));
tools/clang/lib/Lex/MacroArgs.cpp 51 Result = new (
tools/clang/lib/Lex/MacroInfo.cpp 247 return new (Mem) ModuleMacro(OwningModule, II, Macro, Overrides);
tools/clang/lib/Sema/CodeCompleteConsumer.cpp 424 CodeCompletionString *Result = new (Mem) CodeCompletionString(
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp 1001 = new (Mem) NestedNameSpecifierAnnotation;
tools/clang/lib/Sema/SemaDeclObjC.cpp 3374 auto *List = new (Mem) ObjCMethodList(*ListWithSameDeclaration);
3381 Previous->setNext(new (Mem) ObjCMethodList(Method));
tools/clang/lib/Sema/SemaLookup.cpp 3094 Result = new (Result) SpecialMemberOverloadResultEntry(ID);
tools/clang/lib/Sema/SemaOverload.cpp 562 new (&conversions()) ConversionSet();
573 new (&conversions()) ConversionSet(O.conversions());
657 PartialDiagnosticAt *Diag = new (Result.Diagnostic) PartialDiagnosticAt(
tools/clang/lib/Sema/SemaType.cpp 5837 new (LocT) LocInfoType(T, TInfo);
tools/clang/lib/Serialization/ASTReaderDecl.cpp 2303 new (&TypesAndInfos[I].first) QualType(Record.readType());
tools/clang/lib/Serialization/ASTReaderStmt.cpp 575 new (E->getTrailingObjects<NestedNameSpecifierLoc>())
1864 new (I) TemplateArgument(Record.readTemplateArgument());
tools/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp 100 new (P) FoldNodeTy(X);
135 new (D) CompoundValData(T, Vals);
154 new (D) LazyCompoundValData(store, region);
172 new (D) PointerToMemberData(DD, L);
317 new (P) FoldNodeTy(std::make_pair(V, Data));
342 new (P) FoldNodeTy(std::make_pair(V1, V2));
tools/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp 239 new (V) ExplodedNodeVector(Ctx, 4);
417 new (V) NodeTy(L, State, NumNodes, IsSink);
438 new (V) NodeTy(L, State, Id, IsSink);
tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp 75 new (R) RegionTy(arg1, superRegion);
92 new (R) RegionTy(arg1, arg2, superRegion);
111 new (R) RegionTy(arg1, arg2, arg3, superRegion);
724 new (region) REG(this);
749 new (R) StackLocalsSpaceRegion(this, STC);
762 new (R) StackArgumentsSpaceRegion(this, STC);
784 new (R) StaticGlobalSpaceRegion(this, CR);
1003 new (R) ElementRegion(T, Idx, superRegion);
1521 new (BV) VarVec(BC, NumBlockVars);
1523 new (BVOriginal) VarVec(BC, NumBlockVars);
tools/clang/lib/StaticAnalyzer/Core/ProgramState.cpp 420 new (newState) ProgramState(State);
tools/clang/lib/StaticAnalyzer/Core/SymbolManager.cpp 175 new (SD) SymbolRegionValue(SymbolCounter, R);
194 new (SD) SymbolConjured(SymbolCounter, E, LCtx, T, Count, SymbolTag);
211 new (SD) SymbolDerived(SymbolCounter, parentSymbol, R);
227 new (SD) SymbolExtent(SymbolCounter, R);
245 new (SD) SymbolMetadata(SymbolCounter, R, S, T, LCtx, Count, SymbolTag);
262 new (data) SymbolCast(Op, From, To);
280 new (data) SymIntExpr(lhs, op, v, t);
298 new (data) IntSymExpr(lhs, op, rhs, t);
316 new (data) SymSymExpr(lhs, op, rhs, t);
tools/clang/tools/libclang/CXIndexDataConsumer.cpp 335 return new (attrs) AttrListInfo(D, IdxCtx);
tools/lld/COFF/Symbols.h 449 new (s) T(std::forward<ArgT>(arg)...);
tools/lld/include/lld/Common/Memory.h 54 return new (alloc.alloc.Allocate()) T(std::forward<U>(args)...);
tools/lld/wasm/Symbols.h 529 T *s2 = new (s) T(std::forward<ArgT>(arg)...);
tools/lldb/include/lldb/Symbol/PostfixExpression.h 210 return new (alloc.Allocate<T>()) T(std::forward<Args>(args)...);
tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp 278 return new (Alloc.Allocate(sizeof(T), alignof(T)))
tools/lldb/unittests/Utility/ReproducerInstrumentationTest.cpp 487 InstrumentedFoo *foo2 = new (foo) InstrumentedFoo(0);
unittests/Demangle/ItaniumDemangleTest.cpp 27 return new (Alloc.Allocate(sizeof(T), alignof(T)))
unittests/Support/TrailingObjectsTest.cpp 34 return new (Mem) Class1(ShortArray, NumShorts);
77 Class2 *C = new (Mem) Class2(HasShort, HasDouble);
usr/include/c++/7.4.0/bits/forward_list.h 347 ::new ((void*)__node) _Node;
usr/include/c++/7.4.0/bits/hashtable_policy.h 2065 ::new ((void*)__n) __node_type;
usr/include/c++/7.4.0/bits/regex_automaton.h 136 new (this->_M_matcher_storage._M_addr()) _MatcherT();
142 new (this->_M_matcher_storage._M_addr())
149 new (this->_M_matcher_storage._M_addr())
usr/include/c++/7.4.0/bits/shared_ptr_base.h 617 ::new (__mem) _Sp_cd_type(__p, std::move(__d), std::move(__a));
637 ::new (__mem) _Sp_cp_type(std::move(__a),
usr/include/c++/7.4.0/bits/std_function.h 183 ::new (__dest._M_access()) _Functor(__source._M_access<_Functor>());
264 { ::new (__functor._M_access()) _Functor(std::move(__f)); }
usr/include/c++/7.4.0/bits/stl_construct.h 75 { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
usr/include/c++/7.4.0/bits/stl_tree.h 625 ::new(__node) _Rb_tree_node<_Val>;
usr/include/c++/7.4.0/ext/new_allocator.h 136 { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
usr/include/c++/7.4.0/future 258 ::new (_M_storage._M_addr()) _Res(std::move(__res));