Home
last modified time | relevance | path

Searched refs:InitializationKind (Results 1 – 12 of 12) sorted by relevance

/external/clang/include/clang/Sema/
DInitialization.h448 class InitializationKind {
479 InitializationKind(InitKind Kind, InitContext Context, SourceLocation Loc1, in InitializationKind() function
490 static InitializationKind CreateDirect(SourceLocation InitLoc, in CreateDirect()
493 return InitializationKind(IK_Direct, IC_Normal, in CreateDirect()
497 static InitializationKind CreateDirectList(SourceLocation InitLoc) { in CreateDirectList()
498 return InitializationKind(IK_DirectList, IC_Normal, in CreateDirectList()
504 static InitializationKind CreateCast(SourceRange TypeRange) { in CreateCast()
505 return InitializationKind(IK_Direct, IC_StaticCast, TypeRange.getBegin(), in CreateCast()
510 static InitializationKind CreateCStyleCast(SourceLocation StartLoc, in CreateCStyleCast()
515 return InitializationKind(InitList ? IK_DirectList : IK_Direct, in CreateCStyleCast()
[all …]
DSema.h120 class InitializationKind; variable
/external/clang/lib/Sema/
DSemaInit.cpp381 InitializationKind Kind = InitializationKind::CreateValue(Loc, Loc, Loc, in PerformEmptyInit()
408 Kind = InitializationKind::CreateCopy(Loc, Loc); in PerformEmptyInit()
449 InitializationKind::CreateValue(Loc, Loc, Loc, true), in PerformEmptyInit()
1147 InitializationKind Kind = in CheckSubElementType()
1148 InitializationKind::CreateCopy(expr->getLocStart(), SourceLocation()); in CheckSubElementType()
3397 const InitializationKind &Kind,
3428 InitializationKind Kind = in TryInitializerListConstruction()
3429 InitializationKind::CreateDirectList(List->getExprLoc()); in TryInitializerListConstruction()
3513 const InitializationKind &Kind, in TryConstructorInitialization()
3539 bool CopyInitialization = Kind.getKind() == InitializationKind::IK_Copy; in TryConstructorInitialization()
[all …]
DSemaLambda.cpp736 InitializationKind Kind = in buildLambdaInitCaptureInitialization()
738 ? (CXXDirectInit ? InitializationKind::CreateDirect( in buildLambdaInitCaptureInitialization()
740 : InitializationKind::CreateDirectList(Loc)) in buildLambdaInitCaptureInitialization()
741 : InitializationKind::CreateCopy(Loc, Init->getLocStart()); in buildLambdaInitCaptureInitialization()
1461 InitializationKind InitKind = InitializationKind::CreateDirect(Loc, Loc, Loc); in performLambdaVarCaptureInitialization()
DSemaCast.cpp330 InitializationKind initKind in tryDiagnoseOverloadedCast()
331 = (CT == CT_CStyle)? InitializationKind::CreateCStyleCast(range.getBegin(), in tryDiagnoseOverloadedCast()
333 : (CT == CT_Functional)? InitializationKind::CreateFunctionalCast(range, in tryDiagnoseOverloadedCast()
335 : InitializationKind::CreateCast(/*type range?*/ range); in tryDiagnoseOverloadedCast()
1506 InitializationKind InitKind in TryStaticImplicitCast()
1508 ? InitializationKind::CreateCStyleCast(OpRange.getBegin(), OpRange, in TryStaticImplicitCast()
1511 ? InitializationKind::CreateFunctionalCast(OpRange, ListInitialization) in TryStaticImplicitCast()
1512 : InitializationKind::CreateCast(OpRange); in TryStaticImplicitCast()
DSemaExprCXX.cpp1065 InitializationKind InitKind = InitializationKind::CreateDirect(Loc, Loc, Loc); in captureThis()
1294 InitializationKind Kind = in BuildCXXTypeConstructExpr()
1296 ? InitializationKind::CreateDirectList(TyBeginLoc) in BuildCXXTypeConstructExpr()
1297 : InitializationKind::CreateDirect(TyBeginLoc, LParenLoc, RParenLoc) in BuildCXXTypeConstructExpr()
1298 : InitializationKind::CreateValue(TyBeginLoc, LParenLoc, RParenLoc); in BuildCXXTypeConstructExpr()
1829 InitializationKind Kind in BuildCXXNew()
1834 ? InitializationKind::CreateDefault(TypeRange.getBegin()) in BuildCXXNew()
1838 ? InitializationKind::CreateDirectList(TypeRange.getBegin()) in BuildCXXNew()
1839 : InitializationKind::CreateDirect(TypeRange.getBegin(), in BuildCXXNew()
4400 InitializationKind InitKind(InitializationKind::CreateDirect(KWLoc, KWLoc, in evaluateTypeTrait()
[all …]
DSemaDeclCXX.cpp264 InitializationKind Kind = InitializationKind::CreateCopy(Param->getLocation(), in SetParamDefaultArgument()
2718 InitializationKind Kind = FD->getInClassInitStyle() == ICIS_ListInit in ActOnFinishCXXInClassMemberInitializer()
2719 ? InitializationKind::CreateDirectList(InitExpr->getLocStart()) in ActOnFinishCXXInClassMemberInitializer()
2720 : InitializationKind::CreateCopy(InitExpr->getLocStart(), InitLoc); in ActOnFinishCXXInClassMemberInitializer()
3102 InitializationKind Kind = in BuildMemberInitializer()
3103 InitList ? InitializationKind::CreateDirectList(IdLoc) in BuildMemberInitializer()
3104 : InitializationKind::CreateDirect(IdLoc, InitRange.getBegin(), in BuildMemberInitializer()
3156 InitializationKind Kind = in BuildDelegatingInitializer()
3157 InitList ? InitializationKind::CreateDirectList(NameLoc) in BuildDelegatingInitializer()
3158 : InitializationKind::CreateDirect(NameLoc, InitRange.getBegin(), in BuildDelegatingInitializer()
[all …]
DSemaStmt.cpp2798 InitializationKind Kind = InitializationKind::CreateCopy( in PerformMoveOrCopyInitialization()
DSemaExprObjC.cpp402 InitializationKind Kind in CheckObjCCollectionLiteralElement()
403 = InitializationKind::CreateCopy(Element->getLocStart(), in CheckObjCCollectionLiteralElement()
DSemaDecl.cpp9692 InitializationKind Kind = in AddInitializerToDecl()
9695 ? InitializationKind::CreateDirect(VDecl->getLocation(), in AddInitializerToDecl()
9698 : InitializationKind::CreateDirectList(VDecl->getLocation()) in AddInitializerToDecl()
9699 : InitializationKind::CreateCopy(VDecl->getLocation(), in AddInitializerToDecl()
10202 InitializationKind Kind in ActOnUninitializedDecl()
10203 = InitializationKind::CreateDefault(Var->getLocation()); in ActOnUninitializedDecl()
DSemaExpr.cpp4542 InitializationKind Kind in BuildCXXDefaultArgExpr()
4543 = InitializationKind::CreateCopy(Param->getLocation(), in BuildCXXDefaultArgExpr()
5536 InitializationKind Kind in BuildCompoundLiteralExpr()
5537 = InitializationKind::CreateCStyleCast(LParenLoc, in BuildCompoundLiteralExpr()
10782 InitializationKind Kind = in CreateBuiltinBinOp()
10783 InitializationKind::CreateDirectList(RHSExpr->getLocStart()); in CreateBuiltinBinOp()
DSemaOpenMP.cpp8566 InitializationKind Kind = InitializationKind::CreateCopy(ELoc, ELoc); in ActOnOpenMPFirstprivateClause()