Searched defs:Init (Results 201 - 225 of 1406) sorted by last modified time

1234567891011>>

/external/compiler-rt/test/tsan/
H A Ddeadlock_detector_stress_test.cc107 void Init(size_t n) { function in class:LockTest
153 Init(5);
179 Init(5);
197 Init(5);
213 Init(5);
226 Init(5);
241 Init(100);
251 Init(10);
281 Init(5);
301 Init(
[all...]
/external/clang/lib/Sema/
H A DSemaExpr.cpp9323 ExprResult Init = InitSeq.Perform(*this, Entity, Kind, RHSExpr); local
9324 if (Init.isInvalid())
9325 return Init;
9326 RHSExpr = Init.get();
10725 ExprResult Init = PerformCopyInitialization(Entity, SourceLocation(), E); local
10726 if (Init.isInvalid())
10728 E = Init.getAs<Expr>();
11953 InitializationSequence Init(S, Entities.back(), InitKind, Ref);
11955 if (!Init.Diagnose(S, Entities.back(), InitKind, Ref))
11956 Result = Init
12360 Expr *Init = cast<Expr>(Eval->Value); local
[all...]
H A DSemaExprCXX.cpp1133 Expr *Init) {
1134 if (!Init)
1136 if (ParenListExpr *PLE = dyn_cast<ParenListExpr>(Init))
1138 if (isa<ImplicitValueInitExpr>(Init))
1140 else if (CXXConstructExpr *CCE = dyn_cast<CXXConstructExpr>(Init))
1144 assert(isa<InitListExpr>(Init) &&
3671 InitializationSequence Init(S, To, InitKind, ArgExprs);
3672 if (Init.Failed())
3675 ExprResult Result = Init.Perform(S, To, InitKind, ArgExprs);
3846 InitializationSequence Init(Sel
1132 isLegalArrayNewInitializer(CXXNewExpr::InitializationStyle Style, Expr *Init) argument
5812 Expr *Init = cast<Expr>(Eval->Value); local
[all...]
H A DSemaInit.cpp55 /// \brief Check whether the array of type AT can be initialized by the Init
59 static StringInitFailureKind IsStringInit(Expr *Init, const ArrayType *AT, argument
65 Init = Init->IgnoreParens();
68 if (isa<ObjCEncodeExpr>(Init) && AT->getElementType()->isCharType())
72 StringLiteral *SL = dyn_cast<StringLiteral>(Init);
320 void FillInEmptyInitForField(unsigned Init, FieldDecl *Field,
455 void InitListChecker::FillInEmptyInitForField(unsigned Init, FieldDecl *Field, argument
463 if (Init >= NumInits || !ILE->getInit(Init)) {
542 unsigned Init = 0; local
1210 Expr *Init = IList->getInit(Index); local
1398 Expr *Init = IList->getInit(Index); local
1574 Expr *Init = IList->getInit(Index); local
2243 Expr *Init = new (Context) IntegerLiteral( local
2265 Expr *Init = new (Context) IntegerLiteral( local
2475 ActOnDesignatedInitializer(Designation &Desig, SourceLocation Loc, bool GNUSyntax, ExprResult Init) argument
4333 isLibstdcxxPointerReturnFalseHack(Sema &S, const InitializedEntity &Entity, const Expr *Init) argument
5504 performReferenceExtension(Expr *Init, const InitializedEntity *ExtendingEntity) argument
5550 performLifetimeExtension(Expr *Init, const InitializedEntity *ExtendingEntity) argument
5606 warnOnLifetimeExtension(Sema &S, const InitializedEntity &Entity, const Expr *Init, bool IsInitializerList, const ValueDecl *ExtendingDecl) argument
5718 Expr *Init = Args[0]; local
5728 Expr *Init = Args[0]; local
7182 CanPerformCopyInitialization(const InitializedEntity &Entity, ExprResult Init) argument
7197 PerformCopyInitialization(const InitializedEntity &Entity, SourceLocation EqualLoc, ExprResult Init, bool TopLevelOfInitList, bool AllowExplicit) argument
[all...]
H A DSemaLambda.cpp699 Expr *&Init) {
706 const bool IsDirectInit = isa<ParenListExpr>(Init) || isa<InitListExpr>(Init);
721 ParenListExpr *CXXDirectInit = dyn_cast<ParenListExpr>(Init);
723 Expr *DeduceInit = Init;
748 if (isa<InitListExpr>(Init))
771 Loc, Init->getLocStart(), Init->getLocEnd())
773 : InitializationKind::CreateCopy(Loc, Init->getLocStart());
775 MultiExprArg Args = Init;
696 performLambdaInitCaptureInitialization(SourceLocation Loc, bool ByRef, IdentifierInfo *Id, Expr *&Init) argument
800 createLambdaInitCaptureVarDecl(SourceLocation Loc, QualType InitCaptureType, IdentifierInfo *Id, Expr *Init) argument
1569 ExprResult Init = PerformCopyInitialization( local
[all...]
H A DSemaOpenMP.cpp764 if (auto Init = VD->getAnyInitializer()) {
766 if (Checker.Visit(Init))
1611 auto Init = For->getInit(); local
1612 if (ISC.CheckInit(Init)) {
1630 SemaRef.Diag(Init->getLocStart(), diag::err_omp_loop_variable_type)
1664 SemaRef.Diag(Init->getLocStart(), diag::err_omp_loop_var_dsa)
H A DSemaOverload.cpp4072 Expr *Init, QualType T2, bool AllowRvalues,
4140 Init, DeclType, CandidateSet,
4143 S.AddConversionCandidate(Conv, I.getPair(), ActingDC, Init,
4199 TryReferenceInit(Sema &S, Expr *Init, QualType DeclType, argument
4207 ICS.setBad(BadConversionSequence::no_conversion, Init, DeclType);
4210 QualType T2 = Init->getType();
4217 if (FunctionDecl *Fn = S.ResolveAddressOfOverloadedFunction(Init, DeclType,
4227 Expr::Classification InitCategory = Init->Classify(S.Context);
4290 Init, T2, /*AllowRvalues=*/false,
4362 Init, T
4070 FindConversionForRefInit(Sema &S, ImplicitConversionSequence &ICS, QualType DeclType, SourceLocation DeclLoc, Expr *Init, QualType T2, bool AllowRvalues, bool AllowExplicit) argument
4504 Expr *Init = From->getInit(i); local
4587 Expr *Init = From->getInit(0); local
[all...]
H A DSemaStmt.cpp1805 static bool FinishForRangeVarDecl(Sema &SemaRef, VarDecl *Decl, Expr *Init, argument
1810 if ((!isa<InitListExpr>(Init) && Init->getType()->isVoidType()) ||
1811 SemaRef.DeduceAutoType(Decl->getTypeSourceInfo(), Init, InitType) ==
1813 SemaRef.Diag(Loc, DiagID) << Init->getType();
1827 SemaRef.AddInitializerToDecl(Decl, Init, /*DirectInit=*/false,
H A DSemaTemplateDeduction.cpp3958 Sema::DeduceAutoType(TypeSourceInfo *Type, Expr *&Init, QualType &Result) { argument
3959 return DeduceAutoType(Type->getTypeLoc(), Init, Result);
3965 /// \param Init the initializer for the variable whose type is to be deduced.
3969 Sema::DeduceAutoType(TypeLoc Type, Expr *&Init, QualType &Result) { argument
3970 if (Init->getType()->isNonOverloadPlaceholderType()) {
3971 ExprResult NonPlaceholder = CheckPlaceholderExpr(Init);
3974 Init = NonPlaceholder.get();
3977 if (Init->isTypeDependent() || Type.getType()->isDependentType()) {
3988 if (isa<InitListExpr>(Init)) {
3989 Diag(Init
4088 DiagnoseAutoDeductionFailure(VarDecl *VDecl, Expr *Init) argument
[all...]
H A DSemaTemplateInstantiate.cpp2036 Expr *Init = NewInit.get(); local
2037 assert((!Init || !isa<ParenListExpr>(Init)) &&
2040 Init ? Init->getLocStart() : SourceLocation(), Init);
2591 ExprResult Sema::SubstInitializer(Expr *Init, argument
2597 return Instantiator.TransformInitializer(Init, CXXDirectInit);
H A DSemaTemplateInstantiateDecl.cpp3675 ExprResult Init = local
3678 if (!Init.isInvalid()) {
3680 Expr *InitExpr = Init.get();
4013 for (const auto *Init : Tmpl->inits()) {
4016 if (!Init->isWritten())
4021 if (Init->isPackExpansion()) {
4023 TypeLoc BaseTL = Init->getTypeSourceInfo()->getTypeLoc();
4026 collectUnexpandedParameterPacks(Init->getInit(), Unexpanded);
4030 if (CheckParameterPacksForExpansion(Init->getEllipsisLoc(),
4047 ExprResult TempInit = SubstInitializer(Init
[all...]
H A DSemaType.cpp2424 std::string Init = local
2426 if (Init.empty() && S.LangOpts.CPlusPlus11)
2427 Init = "{}";
2428 if (!Init.empty())
2430 << FixItHint::CreateReplacement(ParenRange, Init);
H A DTreeTransform.h347 ExprResult TransformInitializer(Expr *Init, bool CXXDirectInit);
1166 Stmt *Init, Sema::FullExprArg Cond,
1169 return getSema().ActOnForStmt(ForLoc, LParenLoc, Init, Cond,
1882 Expr *Init) {
1884 Init);
1934 Expr *Init) {
1937 Init);
2833 ExprResult TreeTransform<Derived>::TransformInitializer(Expr *Init, argument
2837 if (!Init)
2838 return Init;
1165 RebuildForStmt(SourceLocation ForLoc, SourceLocation LParenLoc, Stmt *Init, Sema::FullExprArg Cond, VarDecl *CondVar, Sema::FullExprArg Inc, SourceLocation RParenLoc, Stmt *Body) argument
1879 RebuildCompoundLiteralExpr(SourceLocation LParenLoc, TypeSourceInfo *TInfo, SourceLocation RParenLoc, Expr *Init) argument
1930 RebuildDesignatedInitExpr(Designation &Desig, MultiExprArg ArrayExprs, SourceLocation EqualOrColonLoc, bool GNUSyntax, Expr *Init) argument
5681 StmtResult Init = getDerived().TransformStmt(S->getInit()); local
7384 ExprResult Init = getDerived().TransformExpr(E->getInit()); local
8797 ExprResult Init = InitExprTypePair.first; local
[all...]
/external/clang/lib/Serialization/
H A DASTWriter.cpp5296 const CXXCtorInitializer *Init = CtorInitializers[i]; local
5298 if (Init->isBaseInitializer()) {
5300 AddTypeSourceInfo(Init->getTypeSourceInfo(), Record);
5301 Record.push_back(Init->isBaseVirtual());
5302 } else if (Init->isDelegatingInitializer()) {
5304 AddTypeSourceInfo(Init->getTypeSourceInfo(), Record);
5305 } else if (Init->isMemberInitializer()){
5307 AddDeclRef(Init->getMember(), Record);
5310 AddDeclRef(Init->getIndirectMember(), Record);
5313 AddSourceLocation(Init
[all...]
/external/clang/lib/StaticAnalyzer/Checkers/
H A DCStringChecker.cpp1952 const Expr *Init = D->getInit(); local
1953 if (!Init)
1955 if (!isa<StringLiteral>(Init))
1963 SVal StrVal = state->getSVal(Init, C.getLocationContext());
1966 getCStringLength(C, state, Init, StrVal).castAs<DefinedOrUnknownSVal>();
H A DLLVMConventionsChecker.cpp154 Expr *Init = VD->getInit(); local
155 if (!Init)
162 ExprWithCleanups *Ex1 = dyn_cast<ExprWithCleanups>(Init);
187 VDLoc, Init->getSourceRange());
H A DMallocChecker.cpp248 const Expr *SizeEx, SVal Init,
253 Init, State, Family);
257 SVal SizeEx, SVal Init,
858 SVal Size, SVal Init,
877 State = State->bindDefault(RetVal, Init);
247 MallocMemAux(CheckerContext &C, const CallExpr *CE, const Expr *SizeEx, SVal Init, ProgramStateRef State, AllocationFamily Family = AF_Malloc) argument
856 MallocMemAux(CheckerContext &C, const CallExpr *CE, SVal Size, SVal Init, ProgramStateRef State, AllocationFamily Family) argument
/external/clang/lib/StaticAnalyzer/Core/
H A DExprEngine.cpp445 void ExprEngine::ProcessInitializer(const CFGInitializer Init, argument
447 const CXXCtorInitializer *BMI = Init.getInitializer();
469 const Expr *Init = BMI->getInit()->IgnoreImplicit(); local
470 if (!isa<CXXConstructExpr>(Init)) {
485 while ((ASE = dyn_cast<ArraySubscriptExpr>(Init)))
486 Init = ASE->getBase()->IgnoreImplicit();
488 SVal LValue = State->getSVal(Init, stackFrame);
508 evalBind(Tmp, Init, Pred, FieldLoc, InitVal, /*isInit=*/true, &PP);
2398 const CXXCtorInitializer *Init = local
2400 if (const FieldDecl *FD = Init
[all...]
H A DExprEngineC.cpp418 const Expr *Init = CL->getInitializer(); local
421 if (isa<CXXConstructExpr>(Init)) {
424 assert(isa<InitListExpr>(Init));
H A DExprEngineCXX.cpp143 const CXXCtorInitializer *Init = InitElem->getInitializer(); local
144 assert(Init->isAnyMemberInitializer());
153 if (Init->isIndirectMemberInitializer()) {
154 Field = Init->getIndirectMember();
155 FieldVal = State->getLValue(Init->getIndirectMember(), ThisVal);
157 Field = Init->getMember();
158 FieldVal = State->getLValue(Init->getMember(), ThisVal);
465 if (const Expr *Init = CNE->getInitializer()) {
466 if (!isa<CXXConstructExpr>(Init)) {
469 evalBind(Dst, CNE, NewN, Result, State->getSVal(Init, LCt
[all...]
H A DPathDiagnostic.cpp552 const CFGInitializer &Init = Source.castAs<CFGInitializer>(); local
553 return PathDiagnosticLocation(Init.getInitializer()->getInit(),
H A DRegionStore.cpp1741 if (const Expr *Init = VD->getInit())
1742 if (Optional<SVal> V = svalBuilder.getConstantVal(Init))
1955 SVal Init) {
1965 if (Optional<loc::MemRegionVal> MRV = Init.getAs<loc::MemRegionVal>()) {
1976 if (Init.getAs<nonloc::LazyCompoundVal>())
1977 return bindAggregate(B, R, Init);
1981 if (Init.isUnknown())
1984 const nonloc::CompoundVal& CV = Init.castAs<nonloc::CompoundVal>();
1953 bindArray(RegionBindingsConstRef B, const TypedValueRegion* R, SVal Init) argument
/external/clang/test/CodeGenCXX/
H A Ddebug-info-context.cpp12 class Init { class in class:ios_base
15 static ios_base::Init __ioinit;
/external/clang/tools/libclang/
H A DCIndex.cpp744 if (Expr *Init = D->getInitExpr())
745 return Visit(MakeCXCursor(Init, StmtParent, TU, RegionOfInterest));
832 CXXCtorInitializer *Init = WrittenInits[I]; local
833 if (Init->isAnyMemberInitializer()) {
834 if (Visit(MakeCursorMemberRef(Init->getAnyMember(),
835 Init->getMemberLocation(), TU)))
837 } else if (TypeSourceInfo *TInfo = Init->getTypeSourceInfo()) {
843 if (Expr *Initializer = Init->getInit())
870 if (Expr *Init = D->getInit())
871 return Visit(MakeCXCursor(Init, StmtParen
[all...]
/external/clang/include/clang/AST/
H A DDataRecursiveASTVisitor.h238 bool TraverseConstructorInitializer(CXXCtorInitializer *Init);
778 CXXCtorInitializer *Init) {
779 if (TypeSourceInfo *TInfo = Init->getTypeSourceInfo())
782 if (Init->isWritten())
783 TRY_TO(TraverseStmt(Init->getInit()));
777 TraverseConstructorInitializer( CXXCtorInitializer *Init) argument

Completed in 543 milliseconds

1234567891011>>