Home
last modified time | relevance | path

Searched refs:getBody (Results 1 – 25 of 123) sorted by relevance

12345

/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp37 return isSemicolonRequiredAfter(While->getBody()); in isSemicolonRequiredAfter()
39 return isSemicolonRequiredAfter(For->getBody()); in isSemicolonRequiredAfter()
41 return isSemicolonRequiredAfter(CXXFor->getBody()); in isSemicolonRequiredAfter()
43 return isSemicolonRequiredAfter(ObjCFor->getBody()); in isSemicolonRequiredAfter()
45 return isSemicolonRequiredAfter(Switch->getBody()); in isSemicolonRequiredAfter()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp208 CounterMap[D->getBody()] = NextCounter++; in VisitDecl()
406 else if (CS == While->getBody()) in TraverseWhileStmt()
407 CounterMap[While->getBody()] = NextCounter++; in TraverseWhileStmt()
425 else if (CS == Do->getBody()) in TraverseDoStmt()
426 CounterMap[Do->getBody()] = NextCounter++; in TraverseDoStmt()
446 else if (CS == For->getBody()) in TraverseForStmt()
447 CounterMap[For->getBody()] = NextCounter++; in TraverseForStmt()
462 if (CS == ForRange->getBody()) in TraverseCXXForRangeStmt()
463 CounterMap[ForRange->getBody()] = NextCounter++; in TraverseCXXForRangeStmt()
627 uint64_t BodyCount = setCount(PGO.getRegionCount(D->getBody())); in VisitFunctionDecl()
[all …]
H A DCoverageMappingGen.cpp619 auto Body = D->getBody(); in VisitDecl()
1473 Stmt *Body = D->getBody(); in VisitDecl()
1513 Visit(S->getBody()); in VisitCoroutineBodyStmt()
1578 ? getRegionCounter(S->getBody()) in VisitWhileStmt()
1583 extendRegion(S->getBody()); in VisitWhileStmt()
1584 Counter BackedgeCount = propagateCounts(BodyCount, S->getBody()); in VisitWhileStmt()
1599 auto Gap = findGapAreaBetween(S->getRParenLoc(), getStart(S->getBody())); in VisitWhileStmt()
1627 ? getRegionCounter(S->getBody()) in VisitDoStmt()
1631 extendRegion(S->getBody()); in VisitDoStmt()
1635 propagateCounts(BodyCount, S->getBody()); in VisitDoStmt()
[all …]
H A DCGStmt.cpp976 const Stmt *Body = S.getBody(); in hasEmptyLoopBody()
1040 createProfileWeightsForLoop(S.getCond(), getProfileCount(S.getBody())); in EmitWhileStmt()
1043 BoolCondVal, Stmt::getLikelihood(S.getBody())); in EmitWhileStmt()
1050 } else if (const Attr *A = Stmt::getLikelihoodAttr(S.getBody())) { in EmitWhileStmt()
1067 incrementProfileCounter(S.getBody()); in EmitWhileStmt()
1070 EmitStmt(S.getBody()); in EmitWhileStmt()
1115 EmitBlockWithFallThrough(LoopBody, S.getBody()); in EmitDoStmt()
1125 EmitStmt(S.getBody()); in EmitDoStmt()
1156 uint64_t BackedgeCount = getProfileCount(S.getBody()) - ParentCount; in EmitDoStmt()
1255 createProfileWeightsForLoop(S.getCond(), getProfileCount(S.getBody())); in EmitForStmt()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DAnalysisDeclContext.cpp93 Stmt *AnalysisDeclContext::getBody(bool &IsAutosynthesized) const { in getBody() function in AnalysisDeclContext
96 Stmt *Body = FD->getBody(); in getBody()
98 Body = CoroBody->getBody(); in getBody()
100 Stmt *SynthesizedBody = ADCMgr->getBodyFarm().getBody(FD); in getBody()
109 Stmt *Body = MD->getBody(); in getBody()
111 Stmt *SynthesizedBody = ADCMgr->getBodyFarm().getBody(MD); in getBody()
119 return BD->getBody(); in getBody()
121 return FunTmpl->getTemplatedDecl()->getBody(); in getBody()
126 Stmt *AnalysisDeclContext::getBody() const { in getBody() function in AnalysisDeclContext
128 return getBody(Tmp); in getBody()
[all …]
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp115 if (!S->getBody()) in VisitWhileStmt()
117 return Visit(S->getBody()); in VisitWhileStmt()
125 if (!S->getBody()) in VisitDoStmt()
127 return Visit(S->getBody()); in VisitDoStmt()
135 if (!S->getBody()) in VisitObjCForCollectionStmt()
137 return Visit(S->getBody()); in VisitObjCForCollectionStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DCodeInjector.h40 virtual Stmt *getBody(const FunctionDecl *D) = 0;
41 virtual Stmt *getBody(const ObjCMethodDecl *D) = 0;
H A DBodyFarm.h35 Stmt *getBody(const FunctionDecl *D);
38 Stmt *getBody(const ObjCMethodDecl *D);
H A DAnalysisDeclContext.h130 Stmt *getBody() const;
135 Stmt *getBody(bool &IsAutosynthesized) const;
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DModelInjector.h38 Stmt *getBody(const FunctionDecl *D) override;
39 Stmt *getBody(const ObjCMethodDecl *D) override;
H A DModelConsumer.cpp36 Bodies.insert(std::make_pair(func->getName(), func->getBody())); in HandleTopLevelDecl()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmtCXX.h170 Stmt *getBody() { return SubExprs[BODY]; } in getBody() function
190 const Stmt *getBody() const { return SubExprs[BODY]; } in getBody() function
380 CompoundStmt *getBody() const { in getBody() function
428 return getBody() ? getBody()->getBeginLoc() in getBeginLoc()
432 return getBody() ? getBody()->getEndLoc() : getPromiseDecl()->getEndLoc(); in getEndLoc()
H A DASTNodeTraverser.h540 Visit(D->getBody()); in VisitFunctionDecl()
583 void VisitCapturedDecl(const CapturedDecl *D) { Visit(D->getBody()); } in VisitCapturedDecl()
763 Visit(D->getBody()); in VisitObjCMethodDecl()
785 Visit(D->getBody()); in VisitBlockDecl()
880 Visit(Node->getBody()); in VisitLambdaExpr()
911 Visit(Node->getBody()); in VisitCXXForRangeStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Syntax/
H A DNodes.h243 Statement *getBody();
253 Statement *getBody();
262 Statement *getBody();
283 Statement *getBody();
292 Statement *getBody();
327 Statement *getBody();
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DObjCUnusedIVarsChecker.cpp47 Scan(M, BE->getBody()); in Scan()
79 Scan(M, I->getBody()); in Scan()
101 Scan(M, FD->getBody()); in Scan()
H A DIdenticalExprChecker.cpp388 if (!isIdenticalStmt(Ctx, ForStmt1->getBody(), ForStmt2->getBody(), in isIdenticalStmt()
400 if (!isIdenticalStmt(Ctx, DStmt1->getBody(), DStmt2->getBody(), in isIdenticalStmt()
412 if (!isIdenticalStmt(Ctx, WStmt1->getBody(), WStmt2->getBody(), in isIdenticalStmt()
H A DMallocOverflowSecurityChecker.cpp248 return this->Visit(S->getBody()); in VisitWhileStmt()
251 return this->Visit(S->getBody()); in VisitForStmt()
254 return this->Visit(S->getBody()); in VisitDoStmt()
280 c.Visit(mgr.getAnalysisDeclContext(D)->getBody()); in OutputPossibleOverflows()
H A DObjCMissingSuperCallChecker.cpp187 if (MD->getBody()) in checkASTDecl()
195 PathDiagnosticLocation::createEnd(MD->getBody(), in checkASTDecl()
H A DOSObjectCStyleCast.cpp114 match(stmt(forEachDescendant(CastM)), *D->getBody(), AM.getASTContext()); in checkASTCodeBody()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DNodes.cpp226 syntax::Statement *syntax::SwitchStatement::getBody() { in getBody() function in syntax::SwitchStatement
241 syntax::Statement *syntax::CaseStatement::getBody() { in getBody() function in syntax::CaseStatement
251 syntax::Statement *syntax::DefaultStatement::getBody() { in getBody() function in syntax::DefaultStatement
280 syntax::Statement *syntax::ForStatement::getBody() { in getBody() function in syntax::ForStatement
290 syntax::Statement *syntax::WhileStatement::getBody() { in getBody() function in syntax::WhileStatement
320 syntax::Statement *syntax::RangeBasedForStatement::getBody() { in getBody() function in syntax::RangeBasedForStatement
/freebsd/contrib/llvm-project/lldb/tools/lldb-instr/
H A DInstrument.cpp56 Stmt *Body = Decl->getBody(); in VisitCXXMethodDecl()
97 Stmt *Body = Decl->getBody(); in ShouldSkip()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DUsedDeclVisitor.h111 if (auto *S = CD->getBody()) { in visitUsedDecl()
115 if (auto *S = CD->getBody()) { in visitUsedDecl()
H A DSemaAvailability.cpp702 return cast<WhileStmt>(Parent)->getBody() == S; in isBodyLikeChildStmt()
704 return cast<DoStmt>(Parent)->getBody() == S; in isBodyLikeChildStmt()
706 return cast<ForStmt>(Parent)->getBody() == S; in isBodyLikeChildStmt()
708 return cast<CXXForRangeStmt>(Parent)->getBody() == S; in isBodyLikeChildStmt()
710 return cast<ObjCForCollectionStmt>(Parent)->getBody() == S; in isBodyLikeChildStmt()
1016 Body = FD->getBody(); in DiagnoseUnguardedAvailabilityViolations()
1023 Body = MD->getBody(); in DiagnoseUnguardedAvailabilityViolations()
1025 Body = BD->getBody(); in DiagnoseUnguardedAvailabilityViolations()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DASTOps.cpp185 auto *Body = dyn_cast_or_null<CompoundStmt>(MethodDecl->getBody()); in getMemberForAccessor()
273 Visitor.TraverseStmt(FD.getBody()); in getReferencedDecls()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DRefCntblBaseVirtualDtorChecker.cpp59 if (auto *Body = Decl->getBody()) in HasSpecializedDelete()
69 return VisitBody(D->getBody()); in VisitCallExpr()

12345