reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/AST/ASTContextAllocate.h
   26 void *operator new(size_t Bytes, const clang::ASTContext &C,

References

tools/clang/include/clang/AST/ASTContext.h
 3149     return new (Ctx) LazyData(Source, Value);
tools/clang/include/clang/AST/Attr.h
   71     return ::operator new(Bytes, C, Alignment);
tools/clang/include/clang/AST/Decl.h
 2758             ? new (getASTContext())
 3059     MaybeModedTInfo.setPointer(new (getASTContext(), 8)
tools/clang/include/clang/AST/DeclTemplate.h
 1830     auto *PS = new (getASTContext()) SpecializedPartialSpecialization();
 1848       ExplicitInfo = new (getASTContext()) ExplicitSpecializationInfo;
 1866       ExplicitInfo = new (getASTContext()) ExplicitSpecializationInfo;
 1873       ExplicitInfo = new (getASTContext()) ExplicitSpecializationInfo;
 2674     auto *PS = new (getASTContext()) SpecializedPartialSpecialization();
 2692       ExplicitInfo = new (getASTContext()) ExplicitSpecializationInfo;
 2710       ExplicitInfo = new (getASTContext()) ExplicitSpecializationInfo;
 2717       ExplicitInfo = new (getASTContext()) ExplicitSpecializationInfo;
tools/clang/lib/AST/ASTContext.cpp
  510   auto *ThisDeclInfo = new (*this) comments::DeclInfo;
  518     new (*this) comments::FullComment(FC->getBlocks(),
  763   Canonical = new (*this) CanonicalTemplateTemplateParm(CanonTTP);
 1096     Inits = new (*this) PerModuleInitializers;
 1103     Inits = new (*this) PerModuleInitializers;
 1190   auto *Ty = new (*this, TypeAlignment) BuiltinType(K);
 1437   setTemplateOrSpecializationInfo(Inst, new (*this) MemberSpecializationInfo(
 2738   auto *eq = new (*this, TypeAlignment) ExtQuals(baseType, canon, quals);
 2936   auto *New = new (*this, TypeAlignment) ComplexType(T, Canonical);
 2964   auto *New = new (*this, TypeAlignment) PointerType(T, Canonical);
 2984   AT = new (*this, TypeAlignment)
 3024   AT = new (*this, TypeAlignment) DecayedType(T, Decayed, Canonical);
 3055   auto *New = new (*this, TypeAlignment) BlockPointerType(T, Canonical);
 3093   auto *New = new (*this, TypeAlignment) LValueReferenceType(T, Canonical,
 3129   auto *New = new (*this, TypeAlignment) RValueReferenceType(T, Canonical);
 3159   auto *New = new (*this, TypeAlignment) MemberPointerType(T, Cls, Canonical);
 3376   auto *New = new (*this, TypeAlignment)
 3402       = new (*this, TypeAlignment)
 3427     canonTy = new (*this, TypeAlignment)
 3448     = new (*this, TypeAlignment)
 3483   auto *newType = new (*this, TypeAlignment)
 3515   auto *New = new (*this, TypeAlignment)
 3535     New = new (*this, TypeAlignment) DependentVectorType(
 3540       New = new (*this, TypeAlignment) DependentVectorType(
 3552       New = new (*this, TypeAlignment) DependentVectorType(
 3585   auto *New = new (*this, TypeAlignment)
 3607     New = new (*this, TypeAlignment)
 3613       New = new (*this, TypeAlignment)
 3625       New = new (*this, TypeAlignment)
 3650     canonTy = new (*this, TypeAlignment)
 3662     = new (*this, TypeAlignment)
 3701   auto *New = new (*this, TypeAlignment)
 3916   auto *New = new (*this, TypeAlignment) PipeType(T, Canonical, ReadOnly);
 3962       new (*this, TypeAlignment) InjectedClassNameType(Decl, TST);
 3989     Type *newType = new (*this, TypeAlignment) UnresolvedUsingType(Using);
 4007   auto *newType = new (*this, TypeAlignment)
 4021   auto *newType = new (*this, TypeAlignment) RecordType(Decl);
 4034   auto *newType = new (*this, TypeAlignment) EnumType(Decl);
 4051   type = new (*this, TypeAlignment)
 4074     SubstParm = new (*this, TypeAlignment)
 4110     = new (*this, TypeAlignment) SubstTemplateTypeParmPackType(Parm, Canon,
 4134     TypeParm = new (*this, TypeAlignment) TemplateTypeParmType(TTPDecl, Canon);
 4141     TypeParm = new (*this, TypeAlignment)
 4327   T = new (*this, TypeAlignment) ParenType(InnerType, Canon);
 4340   auto *newType = new (*this, TypeAlignment)
 4365   T = new (*this, TypeAlignment) DependentNameType(Keyword, NNS, Name, Canon);
 4512   T = new (*this, TypeAlignment)
 4883       toe = new (*this, TypeAlignment) TypeOfExprType(tofExpr,
 4888         = new (*this, TypeAlignment) DependentTypeOfExprType(*this, tofExpr);
 4894     toe = new (*this, TypeAlignment) TypeOfExprType(tofExpr, Canonical);
 4907   auto *tot = new (*this, TypeAlignment) TypeOfType(tofType, Canonical);
 4932       Canon = new (*this, TypeAlignment) DependentDecltypeType(*this, e);
 4935     dt = new (*this, TypeAlignment)
 4938     dt = new (*this, TypeAlignment)
 4964       Canon = new (*this, TypeAlignment)
 4969     ut = new (*this, TypeAlignment) UnaryTransformType (BaseType,
 4974     ut = new (*this, TypeAlignment) UnaryTransformType (BaseType,
 4998   auto *AT = new (*this, TypeAlignment)
 5020   auto *DTST = new (*this, TypeAlignment)
 5050   auto *New = new (*this, TypeAlignment) AtomicType(T, Canonical);
 5060       new (*this, TypeAlignment) AutoType(QualType(), AutoTypeKeyword::Auto,
 7734   auto *OT = new (*this) AssumedTemplateStorage(Name);
 7754     QTN = new (*this, alignof(QualifiedTemplateName))
 7782     QTN = new (*this, alignof(DependentTemplateName))
 7786     QTN = new (*this, alignof(DependentTemplateName))
 7818     QTN = new (*this, alignof(DependentTemplateName))
 7822     QTN = new (*this, alignof(DependentTemplateName))
 7846     subst = new (*this) SubstTemplateTemplateParmStorage(param, replacement);
 7865     Subst = new (*this) SubstTemplateTemplateParmPackStorage(Param,
10335       MTVI = new (*this) APValue;
tools/clang/lib/AST/ASTImporter.cpp
 1341   return QualType(new (Importer.getToContext(), TypeAlignment)
 1875           new (Importer.getToContext()) CXXBaseSpecifier(
 8519     return new (ToContext) CXXCtorInitializer(
 8531     return new (ToContext) CXXCtorInitializer(
 8543     return new (ToContext) CXXCtorInitializer(
 8551     return new (ToContext)
 8575   CXXBaseSpecifier *Imported = new (ToContext) CXXBaseSpecifier(
tools/clang/lib/AST/Decl.cpp
 1825       DeclInfo = new (getASTContext()) ExtInfo;
 1856     DeclInfo = new (getASTContext()) ExtInfo;
 2334     Eval = new (getASTContext()) EvaluatedStmt;
 3485     = new (C) MemberSpecializationInfo(FD, TSK);
 4080       new (getASTContext()) struct CXXRecordDecl::DefinitionData(D);
 4125       TypedefNameDeclOrQualifier = new (getASTContext()) ExtInfo;
 4147     TypedefNameDeclOrQualifier = new (getASTContext()) ExtInfo;
 4269   SpecializationInfo = new (C) MemberSpecializationInfo(ED, TSK);
tools/clang/lib/AST/DeclBase.cpp
  105         ::operator new(ExtraAlign + sizeof(Module *) + Size + Extra, Ctx));
  111   return ::operator new(Size + Extra, Ctx);
  328     auto *MDC = new (Ctx) Decl::MultipleDC();
 1973     DiagStorage = new (C) PartialDiagnostic::Storage;
 1975   auto *DD = new (C) DependentDiagnostic(PDiag, DiagStorage);
tools/clang/lib/AST/DeclCXX.cpp
  149       new (C) struct LambdaDefinitionData(R, Info, Dependent, IsGeneric,
 1684     = new (getASTContext()) MemberSpecializationInfo(RD, TSK);
tools/clang/lib/AST/DeclObjC.cpp
  602   Data.setPointer(new (getASTContext()) DefinitionData());
 1911   Data.setPointer(new (getASTContext()) DefinitionData);
tools/clang/lib/AST/DeclTemplate.cpp
  297   auto *CommonPtr = new (C) Common;
  413   auto *CommonPtr = new (C) Common;
  701     DefaultArgument.set(new (C) TemplateArgumentLoc(DefArg));
  966   auto *CommonPtr = new (C) Common;
 1030   auto *CommonPtr = new (C) Common;
tools/clang/lib/AST/DeclarationName.cpp
  292   auto *Name = new (Ctx) detail::CXXDeductionGuideNameExtra(Template);
  308   auto *SpecialName = new (Ctx) detail::CXXSpecialNameExtra(Ty);
  324   auto *SpecialName = new (Ctx) detail::CXXSpecialNameExtra(Ty);
  340   auto *SpecialName = new (Ctx) detail::CXXSpecialNameExtra(Ty);
  369   auto *LiteralName = new (Ctx) detail::CXXLiteralOperatorIdName(II);
tools/clang/lib/AST/ExprCXX.cpp
 1007   return new (C) CXXTemporary(Destructor);
 1665     auto *ES = new (ExtendedBy->getASTContext()) ExtraState;
tools/clang/lib/AST/NestedNameSpecifier.cpp
   50         new (Context, alignof(NestedNameSpecifier)) NestedNameSpecifier(Mockup);
  128         new (Context, alignof(NestedNameSpecifier)) NestedNameSpecifier();
tools/clang/lib/AST/RecordLayout.cpp
   63     RequiredAlignment(requiredAlignment), CXXInfo(new (Ctx) CXXRecordLayoutInfo)
tools/clang/lib/AST/RecordLayoutBuilder.cpp
 3049       NewEntry = new (*this) ASTRecordLayout(
 3060       NewEntry = new (*this) ASTRecordLayout(
 3082       NewEntry = new (*this) ASTRecordLayout(
 3095       NewEntry = new (*this) ASTRecordLayout(
 3248     new (*this) ASTRecordLayout(*this, Builder.getSize(),
tools/clang/lib/AST/Stmt.cpp
   72   return ::operator new(bytes, C, alignment);
tools/clang/lib/CodeGen/CGBlocks.cpp
 2598   T *copy = new (CGM.getContext()) T(std::forward<T>(generator));
tools/clang/lib/CodeGen/CGObjCRuntime.cpp
  103   CGBitFieldInfo *Info = new (CGF.CGM.getContext()) CGBitFieldInfo(
tools/clang/lib/Sema/ParsedAttr.cpp
   30   IdentifierLoc *Result = new (Ctx) IdentifierLoc;
tools/clang/lib/Sema/SemaDecl.cpp
 7020     NewVD->addAttr(::new (Context) AsmLabelAttr(
 8924     NewFD->addAttr(::new (Context)
tools/clang/lib/Sema/SemaDeclAttr.cpp
  404   D->addAttr(::new (S.Context) AttrType(S.Context, CI));
  730   D->addAttr(::new (S.Context) PtGuardedVarAttr(S.Context, AL));
  752   D->addAttr(::new (S.Context) GuardedByAttr(S.Context, AL, Arg));
  763   D->addAttr(::new (S.Context) PtGuardedByAttr(S.Context, AL, Arg));
  792   D->addAttr(::new (S.Context)
  802   D->addAttr(::new (S.Context)
  822   D->addAttr(::new (S.Context)
  834   D->addAttr(::new (S.Context)
  895   D->addAttr(::new (S.Context)
  922   D->addAttr(::new (S.Context) SharedTrylockFunctionAttr(
  932   D->addAttr(::new (S.Context) ExclusiveTrylockFunctionAttr(
  944   D->addAttr(::new (S.Context) LockReturnedAttr(S.Context, AL, Args[0]));
  959   D->addAttr(::new (S.Context)
  997     D->addAttr(::new (S.Context) EnableIfAttr(S.Context, AL, Cond, Msg));
 1068   D->addAttr(::new (S.Context) DiagnoseIfAttr(
 1101   D->addAttr(::new (S.Context) PassObjectSizeAttr(S.Context, AL, (int)Type));
 1121   D->addAttr(::new (S.Context) ConsumableAttr(S.Context, AL, DefaultState));
 1171   D->addAttr(::new (S.Context)
 1206   D->addAttr(::new (S.Context) ParamTypestateAttr(S.Context, AL, ParamState));
 1251   D->addAttr(::new (S.Context) ReturnTypestateAttr(S.Context, AL, ReturnState));
 1273   D->addAttr(::new (S.Context) SetTypestateAttr(S.Context, AL, NewState));
 1295   D->addAttr(::new (S.Context) TestTypestateAttr(S.Context, AL, TestState));
 1305     TD->addAttr(::new (S.Context) PackedAttr(S.Context, AL));
 1318         FD->addAttr(::new (S.Context) PackedAttr(S.Context, AL));
 1324       FD->addAttr(::new (S.Context) PackedAttr(S.Context, AL));
 1361   D->addAttr(::new (S.Context) IBOutletAttr(S.Context, AL));
 1404   D->addAttr(::new (S.Context) IBOutletCollectionAttr(S.Context, AL, QTLoc));
 1487   D->addAttr(::new (S.Context) NonNullAttr(S.Context, AL, Start, Size));
 1507   D->addAttr(::new (S.Context) NonNullAttr(S.Context, AL, nullptr, 0));
 1517   D->addAttr(::new (S.Context) ReturnsNonNullAttr(S.Context, AL));
 1532   D->addAttr(::new (S.Context) NoEscapeAttr(S.Context, AL));
 1592   D->addAttr(::new (Context) AssumeAlignedAttr(Context, CI, E, OE));
 1623   D->addAttr(::new (Context) AllocAlignAttr(Context, CI, Idx));
 1735   D->addAttr(::new (S.Context)
 1792     D->addAttr(::new (S.Context) AliasAttr(S.Context, AL, Str));
 1794   D->addAttr(::new (S.Context) WeakRefAttr(S.Context, AL));
 1809   D->addAttr(::new (S.Context) IFuncAttr(S.Context, AL, Str));
 1850   D->addAttr(::new (S.Context) AliasAttr(S.Context, AL, Str));
 1867   D->addAttr(::new (S.Context) TLSModelAttr(S.Context, AL, Model));
 1873     D->addAttr(::new (S.Context) RestrictAttr(S.Context, AL));
 1924     D->addAttr(::new (S.Context)
 1927     D->addAttr(::new (S.Context)
 1957   D->addAttr(::new (S.Context) NakedAttr(S.Context, AL));
 1969   D->addAttr(::new (S.Context) NoReturnAttr(S.Context, Attrs));
 2015   D->addAttr(::new (S.Context) AnalyzerNoReturnAttr(S.Context, AL));
 2070   D->addAttr(::new (S.Context) VecReturnAttr(S.Context, AL));
 2085   D->addAttr(::new (S.Context) CarriesDependencyAttr(S.Context, AL));
 2096   D->addAttr(::new (S.Context) UnusedAttr(S.Context, AL));
 2105   D->addAttr(::new (S.Context) ConstructorAttr(S.Context, AL, priority));
 2114   D->addAttr(::new (S.Context) DestructorAttr(S.Context, AL, priority));
 2124   D->addAttr(::new (S.Context) AttrTy(S.Context, AL, Str));
 2135   D->addAttr(::new (S.Context) ObjCExplicitProtocolImplAttr(S.Context, AL));
 2341     auto *Avail = ::new (Context) AvailabilityAttr(
 2472   D->addAttr(::new (S.Context) ExternalSourceSymbolAttr(
 2488   return ::new (S.Context) T(S.Context, CI, value);
 2603   D->addAttr(::new (S.Context) ObjCNSObjectAttr(S.Context, AL));
 2617   D->addAttr(::new (S.Context) ObjCIndependentClassAttr(S.Context, AL));
 2634   D->addAttr(::new (S.Context) BlocksAttr(S.Context, AL, type));
 2721   D->addAttr(::new (S.Context) SentinelAttr(S.Context, AL, sentinel, nullPos));
 2759   D->addAttr(::new (S.Context) WarnUnusedResultAttr(S.Context, AL, Str));
 2780   D->addAttr(::new (S.Context) WeakImportAttr(S.Context, AL));
 2805   D->addAttr(::new (S.Context)
 2826   D->addAttr(::new (S.Context)
 2854   D->addAttr(::new (S.Context) VecTypeHintAttr(S.Context, AL, ParmTSI));
 2874   return ::new (Context) SectionAttr(Context, CI, Name);
 2942   return ::new (Context) CodeSegAttr(Context, CI, Name);
 3004   TargetAttr *NewAttr = ::new (S.Context) TargetAttr(S.Context, AL, Str);
 3022   D->addAttr(::new (S.Context) MinVectorWidthAttr(S.Context, AL, VecWidth));
 3077   D->addAttr(::new (S.Context) CleanupAttr(S.Context, AL, FD));
 3096   D->addAttr(::new (S.Context)
 3132   D->addAttr(::new (S.Context) FormatArgAttr(S.Context, AL, Idx));
 3200   D->addAttr(::new (S.Context) InitPriorityAttr(S.Context, AL, prioritynum));
 3219   return ::new (Context) FormatAttr(Context, CI, Format, FormatIdx, FirstArg);
 3479   D->addAttr(::new (S.Context) CallbackAttr(
 3551   RD->addAttr(::new (S.Context) TransparentUnionAttr(S.Context, AL));
 3567   D->addAttr(::new (S.Context) AnnotateAttr(S.Context, AL, Str));
 3608     D->addAttr(::new (Context) AlignValueAttr(Context, CI, ICE.get()));
 3613   D->addAttr(::new (Context) AlignValueAttr(Context, CI, E));
 3624     D->addAttr(::new (S.Context) AlignedAttr(S.Context, AL, true, nullptr));
 3696     AlignedAttr *AA = ::new (Context) AlignedAttr(Context, CI, true, E);
 3749   AlignedAttr *AA = ::new (Context) AlignedAttr(Context, CI, true, ICE.get());
 3758   AlignedAttr *AA = ::new (Context) AlignedAttr(Context, CI, false, TS);
 3960     D->addAttr(::new (Context) ModeAttr(Context, CI, Name));
 4042   D->addAttr(::new (Context) ModeAttr(Context, CI, Name));
 4046   D->addAttr(::new (S.Context) NoDebugAttr(S.Context, AL));
 4061   return ::new (Context) AlwaysInlineAttr(Context, CI);
 4068   return ::new (Context) CommonAttr(Context, AL);
 4075   return ::new (Context) CommonAttr(Context, AL);
 4099   return ::new (Context) InternalLinkageAttr(Context, AL);
 4122   return ::new (Context) InternalLinkageAttr(Context, AL);
 4135   return ::new (Context) MinSizeAttr(Context, CI);
 4143   return ::new (Context) NoSpeculativeLoadHardeningAttr(Context, AL);
 4162   return ::new (Context) OptimizeNoneAttr(Context, CI);
 4170   return ::new (Context) SpeculativeLoadHardeningAttr(Context, AL);
 4200   D->addAttr(::new (S.Context) CUDAConstantAttr(S.Context, AL));
 4218   D->addAttr(::new (S.Context) CUDASharedAttr(S.Context, AL));
 4249   D->addAttr(::new (S.Context) CUDAGlobalAttr(S.Context, AL));
 4262   D->addAttr(::new (S.Context) GNUInlineAttr(S.Context, AL));
 4282     D->addAttr(::new (S.Context) FastCallAttr(S.Context, AL));
 4285     D->addAttr(::new (S.Context) StdCallAttr(S.Context, AL));
 4288     D->addAttr(::new (S.Context) ThisCallAttr(S.Context, AL));
 4291     D->addAttr(::new (S.Context) CDeclAttr(S.Context, AL));
 4294     D->addAttr(::new (S.Context) PascalAttr(S.Context, AL));
 4297     D->addAttr(::new (S.Context) SwiftCallAttr(S.Context, AL));
 4300     D->addAttr(::new (S.Context) VectorCallAttr(S.Context, AL));
 4303     D->addAttr(::new (S.Context) MSABIAttr(S.Context, AL));
 4306     D->addAttr(::new (S.Context) SysVABIAttr(S.Context, AL));
 4309     D->addAttr(::new (S.Context) RegCallAttr(S.Context, AL));
 4324     D->addAttr(::new (S.Context) PcsAttr(S.Context, AL, PCS));
 4328     D->addAttr(::new (S.Context) AArch64VectorPcsAttr(S.Context, AL));
 4331     D->addAttr(::new (S.Context) IntelOclBiccAttr(S.Context, AL));
 4334     D->addAttr(::new (S.Context) PreserveMostAttr(S.Context, AL));
 4337     D->addAttr(::new (S.Context) PreserveAllAttr(S.Context, AL));
 4359   D->addAttr(::new (S.Context)
 4403       Redecl->addAttr(::new (S.Context) OwnerAttr(S.Context, AL, DerefTypeLoc));
 4420       Redecl->addAttr(::new (S.Context)
 4637     D->addAttr(::new (Context) SwiftContextAttr(Context, CI));
 4645     D->addAttr(::new (Context) SwiftErrorResultAttr(Context, CI));
 4653     D->addAttr(::new (Context) SwiftIndirectResultAttr(Context, CI));
 4749   D->addAttr(::new (Context)
 4789   D->addAttr(::new (S.Context) ArgumentWithTypeTagAttr(
 4816   D->addAttr(::new (S.Context) TypeTagForDatatypeAttr(
 4830   D->addAttr(::new (S.Context)
 4860   D->addAttr(::new (S.Context) ArmMveAliasAttr(S.Context, AL, Ident));
 5118   D->addAttr(::new (S.Context) ObjCReturnsInnerPointerAttr(S.Context, Attrs));
 5138   D->addAttr(::new (S.Context) ObjCRequiresSuperAttr(S.Context, Attrs));
 5164   D->addAttr(::new (S.Context) ObjCBridgeAttr(S.Context, AL, Parm->Ident));
 5176   D->addAttr(::new (S.Context)
 5192   D->addAttr(::new (S.Context) ObjCBridgeRelatedAttr(
 5219   D->addAttr(::new (S.Context) ObjCDesignatedInitializerAttr(S.Context, AL));
 5226   D->addAttr(::new (S.Context)
 5245         ::new (S.Context) ObjCBoxableAttr(S.Context, AL);
 5299   D->addAttr(::new (S.Context) ObjCPreciseLifetimeAttr(S.Context, AL));
 5316   return ::new (Context) UuidAttr(Context, CI, Uuid);
 5397   D->addAttr(::new (S.Context) ThreadAttr(S.Context, AL));
 5427   D->addAttr(::new (S.Context)
 5453   D->addAttr(::new (S.Context) ARMInterruptAttr(S.Context, AL, Kind));
 5504   D->addAttr(::new (S.Context) MSP430InterruptAttr(S.Context, AL, Num));
 5560   D->addAttr(::new (S.Context) MipsInterruptAttr(S.Context, AL, Kind));
 5623   D->addAttr(::new (S.Context) AnyX86InterruptAttr(S.Context, AL));
 5671   FD->addAttr(::new (S.Context)
 5693   FD->addAttr(::new (S.Context) WebAssemblyImportNameAttr(S.Context, AL, Str));
 5751   D->addAttr(::new (S.Context) RISCVInterruptAttr(S.Context, AL, Kind));
 5819   D->addAttr(::new (Context)
 5872   D->addAttr(::new (Context)
 5893   D->addAttr(::new (S.Context) AMDGPUNumSGPRAttr(S.Context, AL, NumSGPR));
 5902   D->addAttr(::new (S.Context) AMDGPUNumVGPRAttr(S.Context, AL, NumVGPR));
 5925   D->addAttr(::new (S.Context) X86ForceAlignArgPointerAttr(S.Context, AL));
 5946   D->addAttr(::new (S.Context) LayoutVersionAttr(S.Context, AL, Version));
 5959   return ::new (Context) DLLImportAttr(Context, CI);
 5972   return ::new (Context) DLLExportAttr(Context, CI);
 6039   return ::new (Context) MSInheritanceAttr(Context, CI, BestCase);
 6062   D->addAttr(::new (S.Context) CapabilityAttr(S.Context, AL, N));
 6070   D->addAttr(::new (S.Context)
 6080   D->addAttr(::new (S.Context) AcquireCapabilityAttr(S.Context, AL, Args.data(),
 6090   D->addAttr(::new (S.Context) TryAcquireCapabilityAttr(
 6100   D->addAttr(::new (S.Context) ReleaseCapabilityAttr(S.Context, AL, Args.data(),
 6115   RequiresCapabilityAttr *RCA = ::new (S.Context)
 6148   D->addAttr(::new (S.Context) DeprecatedAttr(S.Context, AL, Str, Replacement));
 6179   D->addAttr(::new (S.Context) NoSanitizeAttr(S.Context, AL, Sanitizers.data(),
 6210   D->addAttr(::new (S.Context)
 6308   D->addAttr(::new (S.Context) OpenCLAccessAttr(S.Context, AL));
 6327   D->addAttr(::new (S.Context) UninitializedAttr(S.Context, AL));
tools/clang/lib/Sema/SemaDeclCXX.cpp
 2450     return new (Context) CXXBaseSpecifier(SpecifierRange, Virtual,
 2537   return new (Context) CXXBaseSpecifier(SpecifierRange, Virtual,
 4283     return new (Context) CXXCtorInitializer(Context, DirectMember, IdLoc,
 4287     return new (Context) CXXCtorInitializer(Context, IndirectMember, IdLoc,
 4345   return new (Context) CXXCtorInitializer(Context, TInfo, InitRange.getBegin(),
 4420     return new (Context) CXXCtorInitializer(Context, BaseTInfo,
 4475   return new (Context) CXXCtorInitializer(Context, BaseTInfo,
 4571     new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context,
 4664       CXXMemberInit = new (SemaRef.Context) CXXCtorInitializer(
 4667       CXXMemberInit = new (SemaRef.Context) CXXCtorInitializer(
 4696       CXXMemberInit = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context,
 4702       CXXMemberInit = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context,
 4735       = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, Field,
 4890       Init = new (SemaRef.Context)
 4894       Init = new (SemaRef.Context)
 5993           NewAttr = ::new (getASTContext())
 5996           NewAttr = ::new (getASTContext())
11687       Inits.push_back(new (Context) CXXCtorInitializer(
15817         new (Context) CXXCtorInitializer(Context, Field, SourceLocation(),
tools/clang/lib/Sema/SemaOpenMP.cpp
11001   return new (Context)
11032   return new (Context) OMPFinalClause(ValExpr, HelperValStmt, CaptureRegion,
11143   return new (Context) OMPNumThreadsClause(
11187   return new (Context)
11200   return new (Context)
11265   return new (Context)
11282   return new (Context)
11440   return new (Context)
11456   return new (Context)
11471   return new (Context) OMPAtomicDefaultMemOrderClause(Kind, KindKwLoc, StartLoc,
11677   return new (Context)
11787   return new (Context) OMPNowaitClause(StartLoc, EndLoc);
11792   return new (Context) OMPUntiedClause(StartLoc, EndLoc);
11797   return new (Context) OMPMergeableClause(StartLoc, EndLoc);
11802   return new (Context) OMPReadClause(StartLoc, EndLoc);
11807   return new (Context) OMPWriteClause(StartLoc, EndLoc);
11812   return new (Context) OMPUpdateClause(StartLoc, EndLoc);
11817   return new (Context) OMPCaptureClause(StartLoc, EndLoc);
11822   return new (Context) OMPSeqCstClause(StartLoc, EndLoc);
11827   return new (Context) OMPThreadsClause(StartLoc, EndLoc);
11832   return new (Context) OMPSIMDClause(StartLoc, EndLoc);
11837   return new (Context) OMPNogroupClause(StartLoc, EndLoc);
11842   return new (Context) OMPUnifiedAddressClause(StartLoc, EndLoc);
11847   return new (Context) OMPUnifiedSharedMemoryClause(StartLoc, EndLoc);
11852   return new (Context) OMPReverseOffloadClause(StartLoc, EndLoc);
11857   return new (Context) OMPDynamicAllocatorsClause(StartLoc, EndLoc);
14511   return new (Context) OMPDeviceClause(ValExpr, HelperValStmt, CaptureRegion,
15963   return new (Context) OMPNumTeamsClause(ValExpr, HelperValStmt, CaptureRegion,
15990   return new (Context) OMPThreadLimitClause(
16010   return new (Context) OMPPriorityClause(ValExpr, HelperValStmt, CaptureRegion,
16031   return new (Context) OMPGrainsizeClause(ValExpr, HelperValStmt, CaptureRegion,
16052   return new (Context) OMPNumTasksClause(ValExpr, HelperValStmt, CaptureRegion,
16065   return new (Context)
16118   return new (Context)
16148   return new (Context)
tools/clang/lib/Sema/SemaOverload.cpp
  623     auto *Saved = new (Context) DFIDeducedMismatchArgs;
  634     DFIArguments *Saved = new (Context) DFIArguments;
  646     DFIParamWithArguments *Saved = new (Context) DFIParamWithArguments;
tools/clang/lib/Sema/SemaStmtAttr.cpp
   50   return ::new (S.Context) FallThroughAttr(S.Context, A);
   72   return ::new (S.Context) SuppressAttr(
tools/clang/lib/Sema/SemaTemplate.cpp
 8591   const TemplateArgumentList* TemplArgs = new (Context)
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
 1950       InstantiatedBases.push_back(new (Context) CXXBaseSpecifier(Base));
tools/clang/lib/Sema/SemaType.cpp
 3971   return ::new (Ctx) AttrT(Ctx, AL);
 5330   IdentifierLoc *Arg = new (S.Context) IdentifierLoc;
 6022         ::new (Ctx) AddressSpaceAttr(Ctx, Attr, static_cast<unsigned>(ASIdx));
 6200     type = state.getAttributedType(::new (S.Context)
 6304         ::new (S.Context) ObjCGCAttr(S.Context, attr, II), origType, type);
 6825     return ::new (Ctx) PcsAttr(Ctx, Attr, Type);
tools/clang/lib/Serialization/ASTReader.cpp
 6757       T = new (Context, TypeAlignment) InjectedClassNameType(D, TST);
 9435       BOMInit = new (Context)
 9439       BOMInit = new (Context)
 9442       BOMInit = new (Context)
 9446       BOMInit = new (Context)
 9791         Comments.push_back(new (Context) RawComment(
12275     C = new (Context) OMPIfClause();
12278     C = new (Context) OMPFinalClause();
12281     C = new (Context) OMPNumThreadsClause();
12284     C = new (Context) OMPSafelenClause();
12287     C = new (Context) OMPSimdlenClause();
12290     C = new (Context) OMPAllocatorClause();
12293     C = new (Context) OMPCollapseClause();
12296     C = new (Context) OMPDefaultClause();
12299     C = new (Context) OMPProcBindClause();
12302     C = new (Context) OMPScheduleClause();
12308     C = new (Context) OMPNowaitClause();
12311     C = new (Context) OMPUntiedClause();
12314     C = new (Context) OMPMergeableClause();
12317     C = new (Context) OMPReadClause();
12320     C = new (Context) OMPWriteClause();
12323     C = new (Context) OMPUpdateClause();
12326     C = new (Context) OMPCaptureClause();
12329     C = new (Context) OMPSeqCstClause();
12332     C = new (Context) OMPThreadsClause();
12335     C = new (Context) OMPSIMDClause();
12338     C = new (Context) OMPNogroupClause();
12341     C = new (Context) OMPUnifiedAddressClause();
12344     C = new (Context) OMPUnifiedSharedMemoryClause();
12347     C = new (Context) OMPReverseOffloadClause();
12350     C = new (Context) OMPDynamicAllocatorsClause();
12353     C = new (Context) OMPAtomicDefaultMemOrderClause();
12398     C = new (Context) OMPDeviceClause();
12410     C = new (Context) OMPNumTeamsClause();
12413     C = new (Context) OMPThreadLimitClause();
12416     C = new (Context) OMPPriorityClause();
12419     C = new (Context) OMPGrainsizeClause();
12422     C = new (Context) OMPNumTasksClause();
12425     C = new (Context) OMPHintClause();
12428     C = new (Context) OMPDistScheduleClause();
12431     C = new (Context) OMPDefaultmapClause();
tools/clang/lib/Serialization/ASTReaderDecl.cpp
  718     auto *Info = new (Reader.getContext()) TagDecl::ExtInfo();
  828     auto *Info = new (Reader.getContext()) DeclaratorDecl::ExtInfo();
  941       MSInfo = new (C) MemberSpecializationInfo(FD, TSK);
 1803     DD = new (C) CXXRecordDecl::LambdaDefinitionData(D, nullptr, false, false,
 1806     DD = new (C) struct CXXRecordDecl::DefinitionData(D);
 1869     MemberSpecializationInfo *MSI = new (C) MemberSpecializationInfo(RD, TSK);
 2107           new (C) ClassTemplateSpecializationDecl::
 2155         new (C) ClassTemplateSpecializationDecl::ExplicitSpecializationInfo;
 2220           new (C)
 2232         new (C) VarTemplateSpecializationDecl::ExplicitSpecializationInfo;
 3146       DD = new (Reader.getContext()) struct CXXRecordDecl::DefinitionData(RD);
tools/clang/lib/Serialization/ASTReaderStmt.cpp
  712       auto *Base = new (Record.getContext()) CXXBaseSpecifier();
  860     auto *BaseSpec = new (Record.getContext()) CXXBaseSpecifier;
tools/clang/unittests/AST/DeclTest.cpp
   91   DeclF->addAttr(::new (Ctx) AsmLabelAttr(Ctx, SourceLocation(), "foo",
   93   DeclG->addAttr(::new (Ctx) AsmLabelAttr(Ctx, SourceLocation(), "goo",