Home
last modified time | relevance | path

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

12345

/netbsd-src/external/apache2/llvm/dist/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 …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCodeGenPGO.cpp194 CounterMap[D->getBody()] = NextCounter++; in VisitDecl()
410 uint64_t BodyCount = setCount(PGO.getRegionCount(D->getBody())); in VisitFunctionDecl()
411 CountMap[D->getBody()] = BodyCount; in VisitFunctionDecl()
412 Visit(D->getBody()); in VisitFunctionDecl()
422 uint64_t BodyCount = setCount(PGO.getRegionCount(D->getBody())); in VisitCapturedDecl()
423 CountMap[D->getBody()] = BodyCount; in VisitCapturedDecl()
424 Visit(D->getBody()); in VisitCapturedDecl()
429 uint64_t BodyCount = setCount(PGO.getRegionCount(D->getBody())); in VisitObjCMethodDecl()
430 CountMap[D->getBody()] = BodyCount; in VisitObjCMethodDecl()
431 Visit(D->getBody()); in VisitObjCMethodDecl()
[all …]
H A DCoverageMappingGen.cpp489 auto Body = D->getBody(); in VisitDecl()
991 Stmt *Body = D->getBody(); in VisitDecl()
1019 Visit(S->getBody()); in VisitCoroutineBodyStmt()
1081 extendRegion(S->getBody()); in VisitWhileStmt()
1082 Counter BackedgeCount = propagateCounts(BodyCount, S->getBody()); in VisitWhileStmt()
1095 auto Gap = findGapAreaBetween(S->getRParenLoc(), getStart(S->getBody())); in VisitWhileStmt()
1120 extendRegion(S->getBody()); in VisitDoStmt()
1122 propagateCounts(addCounters(ParentCount, BodyCount), S->getBody()); in VisitDoStmt()
1160 extendRegion(S->getBody()); in VisitForStmt()
1161 Counter BackedgeCount = propagateCounts(BodyCount, S->getBody()); in VisitForStmt()
[all …]
H A DCGStmt.cpp840 createProfileWeightsForLoop(S.getCond(), getProfileCount(S.getBody())); in EmitWhileStmt()
843 BoolCondVal, Stmt::getLikelihood(S.getBody())); in EmitWhileStmt()
850 } else if (const Attr *A = Stmt::getLikelihoodAttr(S.getBody())) { in EmitWhileStmt()
866 EmitStmt(S.getBody()); in EmitWhileStmt()
905 EmitStmt(S.getBody()); in EmitDoStmt()
934 uint64_t BackedgeCount = getProfileCount(S.getBody()) - ParentCount; in EmitDoStmt()
1020 createProfileWeightsForLoop(S.getCond(), getProfileCount(S.getBody())); in EmitForStmt()
1023 BoolCondVal, Stmt::getLikelihood(S.getBody())); in EmitForStmt()
1043 EmitStmt(S.getBody()); in EmitForStmt()
1105 createProfileWeightsForLoop(S.getCond(), getProfileCount(S.getBody())); in EmitCXXForRangeStmt()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp36 return isSemicolonRequiredAfter(While->getBody()); in isSemicolonRequiredAfter()
38 return isSemicolonRequiredAfter(For->getBody()); in isSemicolonRequiredAfter()
40 return isSemicolonRequiredAfter(CXXFor->getBody()); in isSemicolonRequiredAfter()
42 return isSemicolonRequiredAfter(ObjCFor->getBody()); in isSemicolonRequiredAfter()
44 return isSemicolonRequiredAfter(Switch->getBody()); in isSemicolonRequiredAfter()
/netbsd-src/external/apache2/llvm/dist/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()
H A DTransforms.cpp270 mark(S->getBody()); in VisitWhileStmt()
275 mark(S->getBody()); in VisitDoStmt()
282 mark(S->getBody()); in VisitForStmt()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DStmtCXX.h169 Stmt *getBody() { return SubExprs[BODY]; } in getBody() function
189 const Stmt *getBody() const { return SubExprs[BODY]; } in getBody() function
378 Stmt *getBody() const { in getBody() function
422 return getBody() ? getBody()->getBeginLoc() in getBeginLoc()
426 return getBody() ? getBody()->getEndLoc() : getPromiseDecl()->getEndLoc(); in getEndLoc()
H A DASTNodeTraverser.h416 Visit(D->getBody()); in VisitFunctionDecl()
451 void VisitCapturedDecl(const CapturedDecl *D) { Visit(D->getBody()); } in VisitCapturedDecl()
622 Visit(D->getBody()); in VisitObjCMethodDecl()
644 Visit(D->getBody()); in VisitBlockDecl()
706 Visit(Node->getBody()); in VisitLambdaExpr()
737 Visit(Node->getBody()); in VisitCXXForRangeStmt()
/netbsd-src/external/apache2/llvm/dist/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.h36 Stmt *getBody(const FunctionDecl *D);
39 Stmt *getBody(const ObjCMethodDecl *D);
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Frontend/
H A DModelInjector.h41 Stmt *getBody(const FunctionDecl *D) override;
42 Stmt *getBody(const ObjCMethodDecl *D) override;
H A DModelInjector.cpp31 Stmt *ModelInjector::getBody(const FunctionDecl *D) { in getBody() function in ModelInjector
36 Stmt *ModelInjector::getBody(const ObjCMethodDecl *D) { in getBody() function in ModelInjector
H A DModelConsumer.cpp37 Bodies.insert(std::make_pair(func->getName(), func->getBody())); in HandleTopLevelDecl()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/Syntax/
H A DNodes.h248 Statement *getBody();
258 Statement *getBody();
267 Statement *getBody();
288 Statement *getBody();
297 Statement *getBody();
332 Statement *getBody();
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
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 DObjCUnusedIVarsChecker.cpp46 Scan(M, BE->getBody()); in Scan()
80 Scan(M, I->getBody()); in Scan()
102 Scan(M, FD->getBody()); in Scan()
H A DMallocOverflowSecurityChecker.cpp246 return this->Visit(S->getBody()); in VisitWhileStmt()
249 return this->Visit(S->getBody()); in VisitForStmt()
252 return this->Visit(S->getBody()); in VisitDoStmt()
278 c.Visit(mgr.getAnalysisDeclContext(D)->getBody()); in OutputPossibleOverflows()
H A DObjCMissingSuperCallChecker.cpp189 if (MD->getBody()) in checkASTDecl()
197 PathDiagnosticLocation::createEnd(MD->getBody(), in checkASTDecl()
H A DGCDAntipatternChecker.cpp212 auto Matches = match(SemaphoreMatcherM, *D->getBody(), AM.getASTContext()); in checkASTCodeBody()
217 Matches = match(GroupMatcherM, *D->getBody(), AM.getASTContext()); in checkASTCodeBody()
H A DCheckSizeofPointer.cpp85 walker.Visit(D->getBody()); in checkASTCodeBody()
/netbsd-src/external/apache2/llvm/dist/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
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaAvailability.cpp586 return cast<WhileStmt>(Parent)->getBody() == S; in isBodyLikeChildStmt()
588 return cast<DoStmt>(Parent)->getBody() == S; in isBodyLikeChildStmt()
590 return cast<ForStmt>(Parent)->getBody() == S; in isBodyLikeChildStmt()
592 return cast<CXXForRangeStmt>(Parent)->getBody() == S; in isBodyLikeChildStmt()
594 return cast<ObjCForCollectionStmt>(Parent)->getBody() == S; in isBodyLikeChildStmt()
911 Body = FD->getBody(); in DiagnoseUnguardedAvailabilityViolations()
913 Body = MD->getBody(); in DiagnoseUnguardedAvailabilityViolations()
915 Body = BD->getBody(); in DiagnoseUnguardedAvailabilityViolations()
H A DUsedDeclVisitor.h93 if (auto *S = CD->getBody()) { in visitUsedDecl()
97 if (auto *S = CD->getBody()) { in visitUsedDecl()
/netbsd-src/external/apache2/llvm/dist/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp253 if (!match(*Node->getBody())) in TraverseCXXForRangeStmt()
255 return VisitorBase::TraverseStmt(Node->getBody()); in TraverseCXXForRangeStmt()
295 if (!match(*Node->getBody())) in TraverseLambdaExpr()
298 return VisitorBase::TraverseStmt(Node->getBody()); in TraverseLambdaExpr()
505 if (SubStmt != RF->getBody()) in dataTraverseNode()
509 TraverseStmt(RF->getBody()); in dataTraverseNode()
571 TraverseStmt(LE->getBody()); in dataTraverseNode()

12345