Home
last modified time | relevance | path

Searched refs:getInit (Results 1 – 25 of 115) sorted by relevance

12345

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaInit.cpp696 if (Init >= ILE->getNumInits() || !ILE->getInit(Init)) { in FillInEmptyInitForBase()
710 dyn_cast<InitListExpr>(ILE->getInit(Init))) { in FillInEmptyInitForBase()
714 dyn_cast<DesignatedInitUpdateExpr>(ILE->getInit(Init))) { in FillInEmptyInitForBase()
731 if (Init >= NumInits || !ILE->getInit(Init)) { in FillInEmptyInitForField()
804 = dyn_cast<InitListExpr>(ILE->getInit(Init))) { in FillInEmptyInitForField()
808 dyn_cast<DesignatedInitUpdateExpr>(ILE->getInit(Init))) { in FillInEmptyInitForField()
845 Outer->setInit(OuterIndex, Outer->getInit(OuterIndex)); in FillInEmptyInitializations()
943 Expr *InitExpr = (Init < NumInits ? ILE->getInit(Init) : nullptr); in FillInEmptyInitializations()
1144 SemaRef.Diag(ParentIList->getInit(Index)->getBeginLoc(), in CheckImplicitInitList()
1154 SourceRange(ParentIList->getInit(Index)->getBeginLoc(), in CheckImplicitInitList()
[all …]
H A DCheckExprLifetime.cpp510 Init = ILE->getInit(0); in visitLocalsRetainedByReferenceBinding()
580 } else if (VD->getInit() && !isVarOnPath(Path, VD)) { in visitLocalsRetainedByReferenceBinding()
582 visitLocalsRetainedByReferenceBinding(Path, VD->getInit(), in visitLocalsRetainedByReferenceBinding()
678 if (VD && VD->getType().isConstQualified() && VD->getInit() && in visitLocalsRetainedByInitializer()
682 Path, VD->getInit(), Visit, true, EnableLifetimeWarnings); in visitLocalsRetainedByInitializer()
749 return visitLocalsRetainedByInitializer(Path, ILE->getInit(0), Visit, in visitLocalsRetainedByInitializer()
755 visitLocalsRetainedByInitializer(Path, ILE->getInit(I), Visit, in visitLocalsRetainedByInitializer()
769 visitLocalsRetainedByReferenceBinding(Path, ILE->getInit(0), in visitLocalsRetainedByInitializer()
775 visitLocalsRetainedByInitializer(Path, ILE->getInit(Index), Visit, in visitLocalsRetainedByInitializer()
783 Expr *SubInit = ILE->getInit(Index); in visitLocalsRetainedByInitializer()
H A DSemaCUDA.cpp541 dyn_cast<CXXConstructExpr>(CI->getInit())) in isEmptyConstructor()
612 if (const auto *Init = VD->getInit()) in IsDependentVar()
630 const Expr *Init = VD->getInit(); in HasAllowedCUDADeviceStaticInitializer()
671 const Expr *Init = VD->getInit(); in checkAllowedInitializer()
H A DUsedDeclVisitor.h88 asImpl().Visit(Init->getInit()); in VisitCXXConstructExpr()
H A DJumpDiagnostics.cpp182 const Expr *Init = VD->getInit(); in GetDiagForGotoScopeDecl()
245 if (Expr *Init = VD->getInit()) in BuildScopeInformation()
346 if (Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DVarBypassDetector.cpp43 if (const Expr *Init = VD->getInit()) in BuildScopeInformation()
70 if (const Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation()
H A DCodeGenPGO.cpp752 if (S->getInit()) in VisitForStmt()
753 Visit(S->getInit()); in VisitForStmt()
787 if (S->getInit()) in VisitCXXForRangeStmt()
788 Visit(S->getInit()); in VisitCXXForRangeStmt()
838 if (S->getInit()) in VisitSwitchStmt()
839 Visit(S->getInit()); in VisitSwitchStmt()
878 if (S->getInit()) in VisitIfStmt()
879 Visit(S->getInit()); in VisitIfStmt()
H A DCoverageMappingGen.cpp1492 auto *Init = Initializer->getInit(); in VisitDecl()
1671 if (S->getInit()) in VisitForStmt()
1672 Visit(S->getInit()); in VisitForStmt()
1743 if (S->getInit()) in VisitCXXForRangeStmt()
1744 Visit(S->getInit()); in VisitCXXForRangeStmt()
1817 if (S->getInit()) in VisitSwitchStmt()
1818 Visit(S->getInit()); in VisitSwitchStmt()
1969 if (const auto *Init = S->getInit()) { in coverIfConstexpr()
2011 if (S->getInit()) in VisitIfStmt()
2012 Visit(S->getInit()); in VisitIfStmt()
H A DCGDeclCXX.cpp41 const Expr *Init = D.getInit(); in EmitDeclInit()
179 const Expr *Init = D.getInit(); in EmitCXXGlobalVarDeclInit()
254 VD.getLocation(), VD.getInit()->getExprLoc()); in createAtExitStub()
306 FI, Args, D.getLocation(), D.getInit()->getExprLoc()); in createTLSAtExitStub()
H A DCGStmt.cpp811 if (S.getInit()) in EmitIfStmt()
812 EmitStmt(S.getInit()); in EmitIfStmt()
1188 if (S.getInit()) in EmitForStmt()
1189 EmitStmt(S.getInit()); in EmitForStmt()
1324 if (S.getInit()) in EmitCXXForRangeStmt()
1325 EmitStmt(S.getInit()); in EmitCXXForRangeStmt()
2144 if (S.getInit()) in EmitSwitchStmt()
2145 EmitStmt(S.getInit()); in EmitSwitchStmt()
2175 if (S.getInit()) in EmitSwitchStmt()
2176 EmitStmt(S.getInit()); in EmitSwitchStmt()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclOpenMP.cpp191 return SourceRange(getInit()->getBeginLoc(), getInit()->getEndLoc()); in getSourceRange()
H A DStmtPrinter.cpp323 if (If->getInit()) in PrintRawIfStmt()
324 PrintInitStmt(If->getInit(), 4); in PrintRawIfStmt()
365 if (Node->getInit()) in VisitSwitchStmt()
366 PrintInitStmt(Node->getInit(), 8); in VisitSwitchStmt()
403 if (Node->getInit()) in VisitForStmt()
404 PrintInitStmt(Node->getInit(), 5); in VisitForStmt()
434 if (Node->getInit()) in VisitCXXForRangeStmt()
435 PrintInitStmt(Node->getInit(), 5); in VisitCXXForRangeStmt()
1200 OCED->getInit()->IgnoreImpCasts()->printPretty(OS, nullptr, Policy); in VisitDeclRefExpr()
1769 if (Node->getInit(i)) in VisitInitListExpr()
[all …]
H A DStmtIterator.cpp81 if (VD->getInit()) in HandleDecl()
H A DStmtCXX.cpp70 return RangeDecl->getInit(); in getRangeInit()
H A DDecl.cpp2173 if (const Expr *Init = getInit()) { in getSourceRange()
2372 if (auto Expr = I->getInit()) { in getAnyInitializer()
2391 Expr *VarDecl::getInit() { in getInit() function in VarDecl
2548 const auto *Init = getInit(); in evaluateValueImpl()
2601 const Expr *Init = getInit(); in hasICEInitializer()
2637 assert(!getInit()->isValueDependent()); in checkForConstantInitialization()
2824 auto *List = dyn_cast<InitListExpr>(getInit()->IgnoreParens()); in hasFlexibleArrayInit()
2827 const Expr *FlexibleInit = List->getInit(List->getNumInits() - 1); in hasFlexibleArrayInit()
2839 auto *List = dyn_cast<InitListExpr>(getInit()->IgnoreParens()); in getFlexibleArrayInitChars()
2842 const Expr *FlexibleInit = List->getInit(List->getNumInits() - 1); in getFlexibleArrayInitChars()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCStringSyntaxChecker.cpp174 if (LenArgVal->getInit()) in containsBadStrlcpyStrlcatPattern()
175 LenArg = LenArgVal->getInit(); in containsBadStrlcpyStrlcatPattern()
H A DIdenticalExprChecker.cpp379 if (!isIdenticalStmt(Ctx, ForStmt1->getInit(), ForStmt2->getInit(), in isIdenticalStmt()
H A DMallocSizeofChecker.cpp105 if (const Expr *Init = VD->getInit()) in VisitDeclStmt()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DEvaluatedExprVisitor.h79 return this->Visit(E->getInit()); in VisitDesignatedInitExpr()
H A DASTNodeTraverser.h223 Visit(Init->getInit()); in Visit()
557 Visit(D->getInit()); in VisitVarDecl()
602 Visit(D->getInit()); in VisitOMPCapturedExprDecl()
908 Visit(Node->getInit()); in VisitCXXForRangeStmt()
H A DStmtCXX.h153 Stmt *getInit() { return SubExprs[INIT]; } in getInit() function
157 const Stmt *getInit() const { return SubExprs[INIT]; } in getInit() function
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCFG.cpp68 if (Expr *Ex = VD->getInit()) in GetEndLoc()
1538 findConstructionContexts(Layer, ILE->getInit(0)); in findConstructionContexts()
1718 Expr *Init = I->getInit(); in addInitializer()
1881 Ty = getReferenceInitTemporaryType(VD->getInit()); in addAutomaticObjDestruction()
2119 const Expr *Init = VD->getInit(); in hasTrivialDestructor()
2987 Expr *Init = VD->getInit(); in VisitDeclSubExpr()
3084 if (Stmt *Init = I->getInit()) in VisitIfStmt()
3199 if (Stmt *Init = I->getInit()) { in VisitIfStmt()
3505 if (Stmt *Init = F->getInit()) in VisitForStmt()
3626 if (Expr *Init = VD->getInit()) { in VisitForStmt()
[all …]
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransRetainReleaseDealloc.cpp232 return isPlusOne(VD->getInit()); in isPlusOneAssignToVar()
373 Expr *Init = VD->getInit(); in checkForGCDOrXPC()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DConstructionContext.h332 return dyn_cast<ArrayInitLoopExpr>(Var->getInit()); in getArrayInitLoop()
403 return dyn_cast<ArrayInitLoopExpr>(I->getInit()); in getArrayInitLoop()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp138 auto *Init = V->getInit(); in checkASTDecl()

12345