Lines Matching +full:mem +full:- +full:base

1 //===- ExprCXX.cpp - (C++) Expression AST Node Implementation -------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
45 //===----------------------------------------------------------------------===//
47 //===----------------------------------------------------------------------===//
68 const Expr *E = getSemanticForm()->IgnoreImplicit(); in getDecomposedForm()
73 assert(NotEq->getOpcode() == UO_LNot); in getDecomposedForm()
74 E = NotEq->getSubExpr()->IgnoreImplicit(); in getDecomposedForm()
80 assert(!SkippedNot || BO->getOpcode() == BO_EQ); in getDecomposedForm()
81 Result.Opcode = SkippedNot ? BO_NE : BO->getOpcode(); in getDecomposedForm()
82 Result.LHS = BO->getLHS(); in getDecomposedForm()
83 Result.RHS = BO->getRHS(); in getDecomposedForm()
86 assert(!SkippedNot || BO->getOperator() == OO_EqualEqual); in getDecomposedForm()
87 assert(BO->isInfixBinaryOp()); in getDecomposedForm()
88 switch (BO->getOperator()) { in getDecomposedForm()
97 Result.LHS = BO->getArg(0); in getDecomposedForm()
98 Result.RHS = BO->getArg(1); in getDecomposedForm()
114 E = Result.LHS->IgnoreUnlessSpelledInSource(); in getDecomposedForm()
116 assert(BO->getOpcode() == BO_Cmp); in getDecomposedForm()
117 Result.LHS = BO->getLHS(); in getDecomposedForm()
118 Result.RHS = BO->getRHS(); in getDecomposedForm()
121 assert(BO->getOperator() == OO_Spaceship); in getDecomposedForm()
122 Result.LHS = BO->getArg(0); in getDecomposedForm()
123 Result.RHS = BO->getArg(1); in getDecomposedForm()
143 if (const CXXRecordDecl *RD = E->getType()->getAsCXXRecordDecl()) in isPotentiallyEvaluated()
144 if (RD->isPolymorphic() && E->isGLValue()) in isPotentiallyEvaluated()
152 const Expr *E = getExprOperand()->IgnoreParenNoopCasts(Context); in isMostDerived()
154 QualType Ty = DRE->getDecl()->getType(); in isMostDerived()
155 if (!Ty->isPointerType() && !Ty->isReferenceType()) in isMostDerived()
166 Operand.get<TypeSourceInfo *>()->getType().getNonReferenceType(), Quals); in getTypeOperand()
170 E = E->IgnoreParens(); in isGLValueFromPointerDeref()
173 if (!CE->getSubExpr()->isGLValue()) in isGLValueFromPointerDeref()
175 return isGLValueFromPointerDeref(CE->getSubExpr()); in isGLValueFromPointerDeref()
179 return isGLValueFromPointerDeref(OVE->getSourceExpr()); in isGLValueFromPointerDeref()
182 if (BO->getOpcode() == BO_Comma) in isGLValueFromPointerDeref()
183 return isGLValueFromPointerDeref(BO->getRHS()); in isGLValueFromPointerDeref()
186 return isGLValueFromPointerDeref(ACO->getTrueExpr()) || in isGLValueFromPointerDeref()
187 isGLValueFromPointerDeref(ACO->getFalseExpr()); in isGLValueFromPointerDeref()
195 if (UO->getOpcode() == UO_Deref) in isGLValueFromPointerDeref()
220 Operand.get<TypeSourceInfo *>()->getType().getNonReferenceType(), Quals); in getTypeOperand()
225 return TypeInfo ? TypeInfo->getTypeLoc().getBeginLoc() : getRParenLoc(); in getBeginLoc()
270 this->Range.setEnd(DirectInitRange.getEnd()); in CXXNewExpr()
273 this->Range.setEnd(getInitializer()->getSourceRange().getEnd()); in CXXNewExpr()
277 this->Range.setEnd(TypeIdParens.getEnd()); in CXXNewExpr()
304 void *Mem = in Create() local
308 return new (Mem) in Create()
318 void *Mem = in CreateEmpty() local
322 return new (Mem) in CreateEmpty()
327 if (getOperatorNew()->getLangOpts().CheckNew) in shouldNullCheckAllocation()
329 return !getOperatorNew()->hasAttr<ReturnsNonNullAttr>() && in shouldNullCheckAllocation()
331 ->getType() in shouldNullCheckAllocation()
332 ->castAs<FunctionProtoType>() in shouldNullCheckAllocation()
333 ->isNothrow() && in shouldNullCheckAllocation()
334 !getOperatorNew()->isReservedGlobalPlacementOperator(); in shouldNullCheckAllocation()
345 if (ICE->getCastKind() == CK_DerivedToBase || in getDestroyedType()
346 ICE->getCastKind() == CK_UncheckedDerivedToBase || in getDestroyedType()
347 ICE->getCastKind() == CK_NoOp) { in getDestroyedType()
348 assert((ICE->getCastKind() == CK_NoOp || in getDestroyedType()
349 getOperatorDelete()->isDestroyingOperatorDelete()) && in getDestroyedType()
351 Arg = ICE->getSubExpr(); in getDestroyedType()
356 // The type-to-delete may not be a pointer if it's a dependent type. in getDestroyedType()
357 const QualType ArgType = Arg->getType(); in getDestroyedType()
359 if (ArgType->isDependentType() && !ArgType->isPointerType()) in getDestroyedType()
362 return ArgType->castAs<PointerType>()->getPointeeType(); in getDestroyedType()
368 Location = Info->getTypeLoc().getBeginLoc(); in PseudoDestructorTypeStorage()
372 const ASTContext &Context, Expr *Base, bool isArrow, in CXXPseudoDestructorExpr() argument
378 Base(static_cast<Stmt *>(Base)), IsArrow(isArrow), in CXXPseudoDestructorExpr()
387 return TInfo->getType(); in getDestroyedType()
395 End = TInfo->getTypeLoc().getSourceRange().getEnd(); in getEndLoc()
425 unsigned NumResults = End - Begin; in Create()
428 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); in Create() local
429 return new (Mem) UnresolvedLookupExpr( in Create()
443 unsigned NumResults = End - Begin; in Create()
445 unsigned NumTemplateArgs = Args ? Args->size() : 0; in Create()
449 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); in Create() local
450 return new (Mem) UnresolvedLookupExpr( in Create()
462 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); in CreateEmpty() local
463 return new (Mem) in CreateEmpty()
478 unsigned NumResults = End - Begin; in OverloadExpr()
492 getTrailingASTTemplateKWAndArgsInfo()->initializeFrom( in OverloadExpr()
495 getTrailingASTTemplateKWAndArgsInfo()->initializeFrom(TemplateKWLoc); in OverloadExpr()
523 getTrailingObjects<ASTTemplateKWAndArgsInfo>()->initializeFrom( in DependentScopeDeclRefExpr()
526 getTrailingObjects<ASTTemplateKWAndArgsInfo>()->initializeFrom( in DependentScopeDeclRefExpr()
540 HasTemplateKWAndArgsInfo, Args ? Args->size() : 0); in Create()
541 void *Mem = Context.Allocate(Size); in Create() local
542 return new (Mem) DependentScopeDeclRefExpr(Context.DependentTy, QualifierLoc, in Create()
554 void *Mem = Context.Allocate(Size); in CreateEmpty() local
555 auto *E = new (Mem) DependentScopeDeclRefExpr( in CreateEmpty()
558 E->DependentScopeDeclRefExprBits.HasTemplateKWAndArgsInfo = in CreateEmpty()
565 return TOE->getBeginLoc(); in getBeginLoc()
571 return TOE->getEndLoc(); in getEndLoc()
577 for (unsigned I = getNumArgs(); I > 0; --I) { in getEndLoc()
578 const Expr *Arg = getArg(I-1); in getEndLoc()
579 if (!Arg->isDefaultArgument()) { in getEndLoc()
580 SourceLocation NewEnd = Arg->getEndLoc(); in getEndLoc()
621 void *Mem = Ctx.Allocate(sizeof(CXXOperatorCallExpr) + SizeOfTrailingObjects, in Create() local
623 return new (Mem) CXXOperatorCallExpr(OpKind, Fn, Args, Ty, VK, OperatorLoc, in Create()
634 void *Mem = Ctx.Allocate(sizeof(CXXOperatorCallExpr) + SizeOfTrailingObjects, in CreateEmpty() local
636 return new (Mem) CXXOperatorCallExpr(NumArgs, HasFPFeatures, Empty); in CreateEmpty()
644 return SourceRange(getOperatorLoc(), getArg(0)->getEndLoc()); in getSourceRangeImpl()
647 return SourceRange(getArg(0)->getBeginLoc(), getOperatorLoc()); in getSourceRangeImpl()
649 return SourceRange(getArg(0)->getBeginLoc(), getOperatorLoc()); in getSourceRangeImpl()
651 return SourceRange(getArg(0)->getBeginLoc(), getRParenLoc()); in getSourceRangeImpl()
653 return SourceRange(getArg(0)->getBeginLoc(), getRParenLoc()); in getSourceRangeImpl()
655 return SourceRange(getOperatorLoc(), getArg(0)->getEndLoc()); in getSourceRangeImpl()
657 return SourceRange(getArg(0)->getBeginLoc(), getArg(1)->getEndLoc()); in getSourceRangeImpl()
686 void *Mem = Ctx.Allocate(sizeof(CXXMemberCallExpr) + SizeOfTrailingObjects, in Create() local
688 return new (Mem) in Create()
699 void *Mem = Ctx.Allocate(sizeof(CXXMemberCallExpr) + SizeOfTrailingObjects, in CreateEmpty() local
701 return new (Mem) CXXMemberCallExpr(NumArgs, HasFPFeatures, Empty); in CreateEmpty()
705 const Expr *Callee = getCallee()->IgnoreParens(); in getImplicitObjectArgument()
707 return MemExpr->getBase(); in getImplicitObjectArgument()
709 if (BO->getOpcode() == BO_PtrMemD || BO->getOpcode() == BO_PtrMemI) in getImplicitObjectArgument()
710 return BO->getLHS(); in getImplicitObjectArgument()
717 QualType Ty = getImplicitObjectArgument()->getType(); in getObjectType()
718 if (Ty->isPointerType()) in getObjectType()
719 Ty = Ty->getPointeeType(); in getObjectType()
724 if (const auto *MemExpr = dyn_cast<MemberExpr>(getCallee()->IgnoreParens())) in getMethodDecl()
725 return cast<CXXMethodDecl>(MemExpr->getMemberDecl()); in getMethodDecl()
737 if (ThisArg->getType()->isAnyPointerType()) in getRecordDecl()
738 return ThisArg->getType()->getPointeeType()->getAsCXXRecordDecl(); in getRecordDecl()
740 return ThisArg->getType()->getAsCXXRecordDecl(); in getRecordDecl()
743 //===----------------------------------------------------------------------===//
745 //===----------------------------------------------------------------------===//
747 /// getCastName - Get the name of the C++ cast being used, e.g.,
767 unsigned PathSize = (BasePath ? BasePath->size() : 0); in Create()
774 std::uninitialized_copy_n(BasePath->data(), BasePath->size(), in Create()
775 E->getTrailingObjects<CXXBaseSpecifier *>()); in Create()
796 unsigned PathSize = (BasePath ? BasePath->size() : 0); in Create()
802 std::uninitialized_copy_n(BasePath->data(), BasePath->size(), in Create()
803 E->getTrailingObjects<CXXBaseSpecifier *>()); in Create()
813 /// isAlwaysNull - Return whether the result of the dynamic_cast is proven
825 QualType SrcType = getSubExpr()->getType(); in isAlwaysNull()
828 if (DestType->isVoidPointerType()) in isAlwaysNull()
831 if (DestType->isPointerType()) { in isAlwaysNull()
832 SrcType = SrcType->getPointeeType(); in isAlwaysNull()
833 DestType = DestType->getPointeeType(); in isAlwaysNull()
836 const auto *SrcRD = SrcType->getAsCXXRecordDecl(); in isAlwaysNull()
837 const auto *DestRD = DestType->getAsCXXRecordDecl(); in isAlwaysNull()
840 if (SrcRD->isEffectivelyFinal()) { in isAlwaysNull()
841 assert(!SrcRD->isDerivedFrom(DestRD) && in isAlwaysNull()
846 if (DestRD->isEffectivelyFinal() && !DestRD->isDerivedFrom(SrcRD)) in isAlwaysNull()
859 unsigned PathSize = (BasePath ? BasePath->size() : 0); in Create()
865 std::uninitialized_copy_n(BasePath->data(), BasePath->size(), in Create()
866 E->getTrailingObjects<CXXBaseSpecifier *>()); in Create()
906 unsigned PathSize = (BasePath ? BasePath->size() : 0); in Create()
913 std::uninitialized_copy_n(BasePath->data(), BasePath->size(), in Create()
914 E->getTrailingObjects<CXXBaseSpecifier *>()); in Create()
929 return getTypeInfoAsWritten()->getTypeLoc().getBeginLoc(); in getBeginLoc()
933 return RParenLoc.isValid() ? RParenLoc : getSubExpr()->getEndLoc(); in getEndLoc()
960 void *Mem = Ctx.Allocate(sizeof(UserDefinedLiteral) + SizeOfTrailingObjects, in Create() local
962 return new (Mem) in Create()
973 void *Mem = Ctx.Allocate(sizeof(UserDefinedLiteral) + SizeOfTrailingObjects, in CreateEmpty() local
975 return new (Mem) UserDefinedLiteral(NumArgs, HasFPOptions, Empty); in CreateEmpty()
987 cast<FunctionDecl>(getCalleeDecl())->getParamDecl(0)->getType(); in getLiteralOperatorKind()
988 if (ParamTy->isPointerType()) in getLiteralOperatorKind()
990 if (ParamTy->isAnyCharacterType()) in getLiteralOperatorKind()
992 if (ParamTy->isIntegerType()) in getLiteralOperatorKind()
994 if (ParamTy->isFloatingType()) in getLiteralOperatorKind()
1009 return cast<FunctionDecl>(getCalleeDecl())->getLiteralIdentifier(); in getUDSuffix()
1015 auto *Mem = C.Allocate(Size, alignof(CXXDefaultArgExpr)); in CreateEmpty() local
1016 return new (Mem) CXXDefaultArgExpr(EmptyShell(), HasRewrittenInit); in CreateEmpty()
1025 auto *Mem = C.Allocate(Size, alignof(CXXDefaultArgExpr)); in Create() local
1026 return new (Mem) CXXDefaultArgExpr(CXXDefaultArgExprClass, Loc, Param, in Create()
1032 : getParam()->getDefaultArg(); in getExpr()
1041 return E->getSubExpr(); in getAdjustedRewrittenExpr()
1050 Ty->isLValueReferenceType() ? VK_LValue in CXXDefaultInitExpr()
1051 : Ty->isRValueReferenceType() ? VK_XValue in CXXDefaultInitExpr()
1061 assert(Field->hasInClassInitializer()); in CXXDefaultInitExpr()
1069 auto *Mem = C.Allocate(Size, alignof(CXXDefaultInitExpr)); in CreateEmpty() local
1070 return new (Mem) CXXDefaultInitExpr(EmptyShell(), HasRewrittenInit); in CreateEmpty()
1080 auto *Mem = Ctx.Allocate(Size, alignof(CXXDefaultInitExpr)); in Create() local
1081 return new (Mem) CXXDefaultInitExpr(Ctx, Loc, Field, Field->getType(), in Create()
1086 assert(Field->getInClassInitializer() && "initializer hasn't been parsed"); in getExpr()
1090 return Field->getInClassInitializer(); in getExpr()
1101 assert((SubExpr->getType()->isRecordType() || in Create()
1102 SubExpr->getType()->isArrayType()) && in Create()
1114 CXXTemporaryObjectExprClass, Ty, TSI->getTypeLoc().getBeginLoc(), in CXXTemporaryObjectExpr()
1132 void *Mem = in Create() local
1135 return new (Mem) CXXTemporaryObjectExpr( in Create()
1143 void *Mem = in CreateEmpty() local
1146 return new (Mem) CXXTemporaryObjectExpr(EmptyShell(), NumArgs); in CreateEmpty()
1150 return getTypeSourceInfo()->getTypeLoc().getBeginLoc(); in getBeginLoc()
1156 Loc = getArg(getNumArgs() - 1)->getEndLoc(); in getEndLoc()
1167 void *Mem = Ctx.Allocate(sizeof(CXXConstructExpr) + SizeOfTrailingObjects, in Create() local
1169 return new (Mem) CXXConstructExpr( in Create()
1178 void *Mem = Ctx.Allocate(sizeof(CXXConstructExpr) + SizeOfTrailingObjects, in CreateEmpty() local
1180 return new (Mem) in CreateEmpty()
1271 assert(capture_size() == Class->capture_size() && "Wrong number of captures"); in LambdaExpr()
1272 assert(getCaptureDefault() == Class->getLambdaCaptureDefault()); in LambdaExpr()
1274 // Copy initialization expressions for the non-static data members. in LambdaExpr()
1280 *Stored++ = getCallOperator()->getBody(); in LambdaExpr()
1307 void *Mem = Context.Allocate(Size); in Create() local
1308 return new (Mem) in Create()
1317 void *Mem = C.Allocate(Size); in CreateDeserialized() local
1318 return new (Mem) LambdaExpr(EmptyShell(), NumCaptures); in CreateDeserialized()
1324 This->getStoredStmts()[capture_size()] = getCallOperator()->getBody(); in initBodyIfNeeded()
1336 return cast<CompoundStmt>(CoroBody->getBody()); in getCompoundStmtBody()
1341 return C->capturesVariable() && C->getCapturedVar()->isInitCapture() && in isInitCapture()
1342 getCallOperator() == C->getCapturedVar()->getDeclContext(); in isInitCapture()
1346 return getLambdaClass()->captures_begin(); in capture_begin()
1350 return getLambdaClass()->captures_end(); in capture_end()
1363 getLambdaClass()->getLambdaData().NumExplicitCaptures; in explicit_capture_end()
1383 return getType()->getAsCXXRecordDecl(); in getLambdaClass()
1388 return Record->getLambdaCallOperator(); in getCallOperator()
1393 return Record->getDependentLambdaCallOperator(); in getDependentCallOperator()
1398 return Record->getGenericLambdaTemplateParameterList(); in getTemplateParameterList()
1403 return Record->getLambdaExplicitTemplateParameters(); in getExplicitTemplateParameters()
1407 return getCallOperator()->getTrailingRequiresClause(); in getTrailingRequiresClause()
1410 bool LambdaExpr::isMutable() const { return !getCallOperator()->isConst(); } in isMutable()
1459 (TSI->getType()->isLValueReferenceType() ? VK_LValue in CXXUnresolvedConstructExpr()
1460 : TSI->getType()->isRValueReferenceType() ? VK_XValue in CXXUnresolvedConstructExpr()
1476 void *Mem = Context.Allocate(totalSizeToAlloc<Expr *>(Args.size())); in Create() local
1477 return new (Mem) CXXUnresolvedConstructExpr(T, TSI, LParenLoc, Args, in Create()
1484 void *Mem = Context.Allocate(totalSizeToAlloc<Expr *>(NumArgs)); in CreateEmpty() local
1485 return new (Mem) CXXUnresolvedConstructExpr(EmptyShell(), NumArgs); in CreateEmpty()
1489 return TypeAndInitForm.getPointer()->getTypeLoc().getBeginLoc(); in getBeginLoc()
1493 const ASTContext &Ctx, Expr *Base, QualType BaseType, bool IsArrow, in CXXDependentScopeMemberExpr() argument
1500 Base(Base), BaseType(BaseType), QualifierLoc(QualifierLoc), in CXXDependentScopeMemberExpr()
1511 getTrailingObjects<ASTTemplateKWAndArgsInfo>()->initializeFrom( in CXXDependentScopeMemberExpr()
1515 getTrailingObjects<ASTTemplateKWAndArgsInfo>()->initializeFrom( in CXXDependentScopeMemberExpr()
1535 const ASTContext &Ctx, Expr *Base, QualType BaseType, bool IsArrow, in Create() argument
1542 unsigned NumTemplateArgs = TemplateArgs ? TemplateArgs->size() : 0; in Create()
1549 void *Mem = Ctx.Allocate(Size, alignof(CXXDependentScopeMemberExpr)); in Create() local
1550 return new (Mem) CXXDependentScopeMemberExpr( in Create()
1551 Ctx, Base, BaseType, IsArrow, OperatorLoc, QualifierLoc, TemplateKWLoc, in Create()
1564 void *Mem = Ctx.Allocate(Size, alignof(CXXDependentScopeMemberExpr)); in CreateEmpty() local
1565 return new (Mem) CXXDependentScopeMemberExpr( in CreateEmpty()
1588 if (cast<CXXMethodDecl>(decl->getUnderlyingDecl()->getAsFunction()) in hasOnlyNonStaticMemberFunctions()
1589 ->isStatic()) in hasOnlyNonStaticMemberFunctions()
1597 const ASTContext &Context, bool HasUnresolvedUsing, Expr *Base, in UnresolvedMemberExpr() argument
1607 ((Base && Base->isTypeDependent()) || BaseType->isDependentType()), in UnresolvedMemberExpr()
1608 ((Base && Base->isInstantiationDependent()) || in UnresolvedMemberExpr()
1609 BaseType->isInstantiationDependentType()), in UnresolvedMemberExpr()
1611 ((Base && Base->containsUnexpandedParameterPack()) || in UnresolvedMemberExpr()
1612 BaseType->containsUnexpandedParameterPack())), in UnresolvedMemberExpr()
1613 Base(Base), BaseType(BaseType), OperatorLoc(OperatorLoc) { in UnresolvedMemberExpr()
1617 // Check whether all of the members are non-static member functions, in UnresolvedMemberExpr()
1618 // and if so, mark give this bound-member type instead of overload type. in UnresolvedMemberExpr()
1630 if (!Base) in isImplicitAccess()
1633 return cast<Expr>(Base)->isImplicitCXXThis(); in isImplicitAccess()
1637 const ASTContext &Context, bool HasUnresolvedUsing, Expr *Base, in Create() argument
1643 unsigned NumResults = End - Begin; in Create()
1645 unsigned NumTemplateArgs = TemplateArgs ? TemplateArgs->size() : 0; in Create()
1649 void *Mem = Context.Allocate(Size, alignof(UnresolvedMemberExpr)); in Create() local
1650 return new (Mem) UnresolvedMemberExpr( in Create()
1651 Context, HasUnresolvedUsing, Base, BaseType, IsArrow, OperatorLoc, in Create()
1662 void *Mem = Context.Allocate(Size, alignof(UnresolvedMemberExpr)); in CreateEmpty() local
1663 return new (Mem) in CreateEmpty()
1668 // Unlike for UnresolvedLookupExpr, it is very easy to re-derive this. in getNamingClass()
1675 if (NNS && NNS->getKind() != NestedNameSpecifier::Super) { in getNamingClass()
1676 const Type *T = getQualifier()->getAsType(); in getNamingClass()
1678 Record = T->getAsCXXRecordDecl(); in getNamingClass()
1681 // Otherwise the naming class must have been the base class. in getNamingClass()
1685 BaseType = BaseType->castAs<PointerType>()->getPointeeType(); in getNamingClass()
1687 Record = BaseType->getAsCXXRecordDecl(); in getNamingClass()
1688 assert(Record && "base of member expression does not name record"); in getNamingClass()
1715 getReplacedTemplateParameterList(getAssociatedDecl())->asArray()[Index]); in getParameter()
1724 Type = SubstitutedExprs[*Index]->getType(); in Create()
1737 NamedDecl *ND = dyn_cast<NamedDecl>(D->getDecl()); in getPackDecl()
1776 getReplacedTemplateParameterList(getAssociatedDecl())->asArray()[Index]); in getParameterPack()
1818 MTD->ExprWithTemporary = Temporary; in MaterializeTemporaryExpr()
1832 // extended-by ValueDecl. in setExtendingDecl()
1838 ES->ExtendingDecl = ExtendedBy; in setExtendingDecl()
1839 ES->ManglingNumber = ManglingNumber; in setExtendingDecl()
1846 // a temporary object of non-volatile const-qualified literal type in isUsableInConstantExpressions()
1852 getType()->isLiteralType(Context) && in isUsableInConstantExpressions()
1853 VD->isUsableInConstantExpressions(Context); in isUsableInConstantExpressions()
1883 void *Mem = C.Allocate(totalSizeToAlloc<TypeSourceInfo *>(Args.size())); in Create() local
1884 return new (Mem) TypeTraitExpr(T, Loc, Kind, Args, RParenLoc, Value); in Create()
1889 void *Mem = C.Allocate(totalSizeToAlloc<TypeSourceInfo *>(NumArgs)); in CreateDeserialized() local
1890 return new (Mem) TypeTraitExpr(EmptyShell()); in CreateDeserialized()
1915 void *Mem = Ctx.Allocate(sizeof(CUDAKernelCallExpr) + SizeOfTrailingObjects, in Create() local
1917 return new (Mem) in Create()
1928 void *Mem = Ctx.Allocate(sizeof(CUDAKernelCallExpr) + SizeOfTrailingObjects, in CreateEmpty() local
1930 return new (Mem) CUDAKernelCallExpr(NumArgs, HasFPFeatures, Empty); in CreateEmpty()
1938 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(Args.size())); in Create() local
1939 return new (Mem) CXXParenListInitExpr(Args, T, NumUserSpecifiedExprs, InitLoc, in Create()
1946 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(NumExprs), in CreateEmpty() local
1948 return new (Mem) CXXParenListInitExpr(Empty, NumExprs); in CreateEmpty()