Home
last modified time | relevance | path

Searched refs:compoundStmt (Results 1 – 25 of 516) sorted by relevance

12345678910>>...21

/dports/editors/libreoffice/libreoffice-7.2.6.2/compilerplugins/clang/
H A Dblockblock.cxx82 auto compoundStmt = dyn_cast<CompoundStmt>(caseStmt->getSubStmt()); in VisitCaseStmt() local
83 if (!compoundStmt) in VisitCaseStmt()
85 if (compoundStmt->size() != 2) in VisitCaseStmt()
87 auto it = compoundStmt->body_begin(); in VisitCaseStmt()
97 compat::getBeginLoc(compoundStmt)) in VisitCaseStmt()
98 << compoundStmt->getSourceRange(); in VisitCaseStmt()
H A Dindentation.cxx93 bool Indentation::VisitCompoundStmt(CompoundStmt const* compoundStmt) in VisitCompoundStmt() argument
95 if (ignoreLocation(compoundStmt)) in VisitCompoundStmt()
98 if (!switchStmtBodies.empty() && switchStmtBodies.back() == compoundStmt) in VisitCompoundStmt()
108 for (auto i = compoundStmt->body_begin(); i != compoundStmt->body_end(); ++i) in VisitCompoundStmt()
275 auto compoundStmt = dyn_cast<CompoundStmt>(switchStmt->getBody()); in VisitSwitchStmt() local
276 if (!compoundStmt) in VisitSwitchStmt()
278 for (auto i = compoundStmt->body_begin(); i != compoundStmt->body_end(); ++i) in VisitSwitchStmt()
H A Dunnecessarycatchthrow.cxx54 auto compoundStmt = dyn_cast<CompoundStmt>(catchStmt->getHandlerBlock()); in VisitCXXTryStmt() local
55 if (!compoundStmt || compoundStmt->size() != 1) in VisitCXXTryStmt()
57 auto throwExpr = dyn_cast<CXXThrowExpr>(compoundStmt->body_front()); in VisitCXXTryStmt()
H A Dflatten.cxx62 if (auto compoundStmt = dyn_cast<CompoundStmt>(stmt)) { in containsSingleThrowExpr() local
63 if (compoundStmt->size() != 1) in containsSingleThrowExpr()
65 stmt = *compoundStmt->body_begin(); in containsSingleThrowExpr()
75 if (auto compoundStmt = dyn_cast<CompoundStmt>(stmt)) { in containsVarDecl() local
76 for (auto i = compoundStmt->body_begin(); i != compoundStmt->body_end(); ++i) { in containsVarDecl()
111 bool Flatten::TraverseCompoundStmt(CompoundStmt * compoundStmt) in TraverseCompoundStmt() argument
114 if (compoundStmt->size() > 0) in TraverseCompoundStmt()
115 lastStmtInCompoundStmt = compoundStmt->body_back(); in TraverseCompoundStmt()
310 if (compoundStmt->getLBracLoc().isValid()) { in rewrite1()
360 if (compoundStmt->getLBracLoc().isValid()) { in rewrite2()
[all …]
H A Ddodgyswitch.cxx69 auto compoundStmt = dyn_cast<CompoundStmt>(parent); in IsParentSwitch() local
70 if (!compoundStmt) in IsParentSwitch()
72 return isa<SwitchStmt>(getParentStmt(compoundStmt)); in IsParentSwitch()
H A Dinlinesimplememberfunctions.cxx91 const CompoundStmt* compoundStmt = dyn_cast< CompoundStmt >( functionDecl->getBody() ); in VisitCXXMethodDecl() local
92 if (compoundStmt == nullptr) { in VisitCXXMethodDecl()
95 if (compoundStmt->body_begin() == compoundStmt->body_end()) { in VisitCXXMethodDecl()
100 const Stmt* childStmt = *compoundStmt->child_begin(); in VisitCXXMethodDecl()
159 childStmt = *(*compoundStmt->child_begin())->child_begin(); in VisitCXXMethodDecl()
H A Dxmlimport.cxx188 auto compoundStmt = dyn_cast_or_null<CompoundStmt>(methodDecl->getBody()); in VisitCXXMethodDecl() local
189 if (compoundStmt == nullptr || compoundStmt->size() > 0) in VisitCXXMethodDecl()
202 auto compoundStmt = dyn_cast_or_null<CompoundStmt>(methodDecl->getBody()); in VisitCXXMethodDecl() local
203 if (compoundStmt == nullptr || compoundStmt->size() > 1) in VisitCXXMethodDecl()
205 auto returnStmt = dyn_cast_or_null<ReturnStmt>(*compoundStmt->body_begin()); in VisitCXXMethodDecl()
H A Demptyif.cxx47 auto compoundStmt = dyn_cast<CompoundStmt>(stmt); in empty() local
48 if (!compoundStmt) in empty()
50 return compoundStmt->size() == 0; in empty()
H A Dstaticdynamic.cxx72 bool StaticDynamic::TraverseCompoundStmt(CompoundStmt* compoundStmt) in TraverseCompoundStmt() argument
75 if (PreTraverseCompoundStmt(compoundStmt)) in TraverseCompoundStmt()
77 ret = FilteringPlugin::TraverseCompoundStmt(compoundStmt); in TraverseCompoundStmt()
78 PostTraverseCompoundStmt(compoundStmt, ret); in TraverseCompoundStmt()
H A Duseuniqueptr.cxx166 const CompoundStmt* compoundStmt = dyn_cast_or_null< CompoundStmt >( functionDecl->getBody() ); in VisitFunctionDecl() local
167 if (!compoundStmt || compoundStmt->size() == 0) in VisitFunctionDecl()
170 CheckCompoundStmt(functionDecl, compoundStmt); in VisitFunctionDecl()
178 …UseUniquePtr::CheckCompoundStmt(const FunctionDecl* functionDecl, const CompoundStmt* compoundStmt) in CheckCompoundStmt() argument
180 for (auto i = compoundStmt->body_begin(); i != compoundStmt->body_end(); ++i) in CheckCompoundStmt()
619 else if (auto compoundStmt = dyn_cast<CompoundStmt>(bodyStmt)) in CheckLoopDelete() local
621 for (auto i = compoundStmt->body_begin(); i != compoundStmt->body_end(); ++i) in CheckLoopDelete()
836 if (auto compoundStmt = dyn_cast<CompoundStmt>(cxxForRangeStmt->getBody())) in CheckCXXForRangeStmt() local
838 for (auto i = compoundStmt->body_begin(); i != compoundStmt->body_end(); ++i) in CheckCXXForRangeStmt()
H A Dunnecessaryoverride.cxx291 const CompoundStmt* compoundStmt = dyn_cast<CompoundStmt>(methodDecl->getBody()); in VisitCXXMethodDecl() local
292 if (!compoundStmt || compoundStmt->size() > 2) in VisitCXXMethodDecl()
296 if (compoundStmt->size() == 1) in VisitCXXMethodDecl()
300 if (auto const e = dyn_cast<Expr>(*compoundStmt->body_begin())) { in VisitCXXMethodDecl()
306 auto returnStmt = dyn_cast<ReturnStmt>(*compoundStmt->body_begin()); in VisitCXXMethodDecl()
325 auto bodyIt = compoundStmt->body_begin(); in VisitCXXMethodDecl()
/dports/editors/libreoffice6/libreoffice-6.4.7.2/compilerplugins/clang/
H A Dblockblock.cxx82 auto compoundStmt = dyn_cast<CompoundStmt>(caseStmt->getSubStmt()); in VisitCaseStmt() local
83 if (!compoundStmt) in VisitCaseStmt()
85 if (compoundStmt->size() != 2) in VisitCaseStmt()
87 auto it = compoundStmt->body_begin(); in VisitCaseStmt()
97 compat::getBeginLoc(compoundStmt)) in VisitCaseStmt()
98 << compoundStmt->getSourceRange(); in VisitCaseStmt()
H A Dindentation.cxx96 bool Indentation::VisitCompoundStmt(CompoundStmt const* compoundStmt) in VisitCompoundStmt() argument
98 if (ignoreLocation(compoundStmt)) in VisitCompoundStmt()
101 if (!switchStmtBodies.empty() && switchStmtBodies.back() == compoundStmt) in VisitCompoundStmt()
111 for (auto i = compoundStmt->body_begin(); i != compoundStmt->body_end(); ++i) in VisitCompoundStmt()
278 auto compoundStmt = dyn_cast<CompoundStmt>(switchStmt->getBody()); in VisitSwitchStmt() local
279 if (!compoundStmt) in VisitSwitchStmt()
281 for (auto i = compoundStmt->body_begin(); i != compoundStmt->body_end(); ++i) in VisitSwitchStmt()
H A Dflatten.cxx62 if (auto compoundStmt = dyn_cast<CompoundStmt>(stmt)) { in containsSingleThrowExpr() local
63 if (compoundStmt->size() != 1) in containsSingleThrowExpr()
65 stmt = *compoundStmt->body_begin(); in containsSingleThrowExpr()
75 if (auto compoundStmt = dyn_cast<CompoundStmt>(stmt)) { in containsVarDecl() local
76 for (auto i = compoundStmt->body_begin(); i != compoundStmt->body_end(); ++i) { in containsVarDecl()
111 bool Flatten::TraverseCompoundStmt(CompoundStmt * compoundStmt) in TraverseCompoundStmt() argument
114 if (compoundStmt->size() > 0) in TraverseCompoundStmt()
115 lastStmtInCompoundStmt = compoundStmt->body_back(); in TraverseCompoundStmt()
308 if (compoundStmt->getLBracLoc().isValid()) { in rewrite1()
358 if (compoundStmt->getLBracLoc().isValid()) { in rewrite2()
[all …]
H A Dunnecessarycatchthrow.cxx54 auto compoundStmt = dyn_cast<CompoundStmt>(catchStmt->getHandlerBlock()); in VisitCXXTryStmt() local
55 if (!compoundStmt || compoundStmt->size() != 1) in VisitCXXTryStmt()
57 auto throwExpr = dyn_cast<CXXThrowExpr>(compoundStmt->body_front()); in VisitCXXTryStmt()
H A Ddodgyswitch.cxx69 auto compoundStmt = dyn_cast<CompoundStmt>(parent); in IsParentSwitch() local
70 if (!compoundStmt) in IsParentSwitch()
72 return isa<SwitchStmt>(getParentStmt(compoundStmt)); in IsParentSwitch()
H A Dinlinesimplememberfunctions.cxx91 const CompoundStmt* compoundStmt = dyn_cast< CompoundStmt >( functionDecl->getBody() ); in VisitCXXMethodDecl() local
92 if (compoundStmt == nullptr) { in VisitCXXMethodDecl()
95 if (compoundStmt->body_begin() == compoundStmt->body_end()) { in VisitCXXMethodDecl()
100 const Stmt* childStmt = *compoundStmt->child_begin(); in VisitCXXMethodDecl()
159 childStmt = *(*compoundStmt->child_begin())->child_begin(); in VisitCXXMethodDecl()
H A Demptyif.cxx47 auto compoundStmt = dyn_cast<CompoundStmt>(stmt); in empty() local
48 if (!compoundStmt) in empty()
50 return compoundStmt->size() == 0; in empty()
H A Duseuniqueptr.cxx166 const CompoundStmt* compoundStmt = dyn_cast_or_null< CompoundStmt >( functionDecl->getBody() ); in VisitFunctionDecl() local
167 if (!compoundStmt || compoundStmt->size() == 0) in VisitFunctionDecl()
170 CheckCompoundStmt(functionDecl, compoundStmt); in VisitFunctionDecl()
178 …UseUniquePtr::CheckCompoundStmt(const FunctionDecl* functionDecl, const CompoundStmt* compoundStmt) in CheckCompoundStmt() argument
180 for (auto i = compoundStmt->body_begin(); i != compoundStmt->body_end(); ++i) in CheckCompoundStmt()
617 else if (auto compoundStmt = dyn_cast<CompoundStmt>(bodyStmt)) in CheckLoopDelete() local
619 for (auto i = compoundStmt->body_begin(); i != compoundStmt->body_end(); ++i) in CheckLoopDelete()
834 if (auto compoundStmt = dyn_cast<CompoundStmt>(cxxForRangeStmt->getBody())) in CheckCXXForRangeStmt() local
836 for (auto i = compoundStmt->body_begin(); i != compoundStmt->body_end(); ++i) in CheckCXXForRangeStmt()
H A Dunnecessaryoverride.cxx290 const CompoundStmt* compoundStmt = dyn_cast<CompoundStmt>(methodDecl->getBody()); in VisitCXXMethodDecl() local
291 if (!compoundStmt || compoundStmt->size() > 2) in VisitCXXMethodDecl()
295 if (compoundStmt->size() == 1) in VisitCXXMethodDecl()
299 if (auto const e = dyn_cast<Expr>(*compoundStmt->body_begin())) { in VisitCXXMethodDecl()
305 auto returnStmt = dyn_cast<ReturnStmt>(*compoundStmt->body_begin()); in VisitCXXMethodDecl()
324 auto bodyIt = compoundStmt->body_begin(); in VisitCXXMethodDecl()
/dports/editors/libreoffice/libreoffice-7.2.6.2/compilerplugins/clang/store/
H A Dreturnbyref.cxx93 const CompoundStmt* compoundStmt = dyn_cast< CompoundStmt >( functionDecl->getBody() ); in VisitCXXMethodDecl() local
94 if (compoundStmt == nullptr || compoundStmt->body_begin() == compoundStmt->body_end()) { in VisitCXXMethodDecl()
97 const ReturnStmt* returnStmt = dyn_cast<ReturnStmt>(*compoundStmt->child_begin()); in VisitCXXMethodDecl()
/dports/editors/libreoffice6/libreoffice-6.4.7.2/compilerplugins/clang/store/
H A Dreturnbyref.cxx93 const CompoundStmt* compoundStmt = dyn_cast< CompoundStmt >( functionDecl->getBody() ); in VisitCXXMethodDecl() local
94 if (compoundStmt == nullptr || compoundStmt->body_begin() == compoundStmt->body_end()) { in VisitCXXMethodDecl()
97 const ReturnStmt* returnStmt = dyn_cast<ReturnStmt>(*compoundStmt->child_begin()); in VisitCXXMethodDecl()
/dports/devel/llvm11/llvm-11.0.1.src/tools/clang/tools/extra/clang-tidy/bugprone/
H A DSpuriouslyWakeUpFunctionsCheck.cpp83 hasParent(compoundStmt(hasParent(whileStmt()))), in registerMatchers()
85 hasParent(compoundStmt(hasParent(forStmt()))), in registerMatchers()
87 hasParent(compoundStmt(hasParent(doStmt()))))) in registerMatchers()
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/clang-tools-extra/clang-tidy/bugprone/
H A DSpuriouslyWakeUpFunctionsCheck.cpp83 hasParent(compoundStmt(hasParent(whileStmt()))), in registerMatchers()
85 hasParent(compoundStmt(hasParent(forStmt()))), in registerMatchers()
87 hasParent(compoundStmt(hasParent(doStmt()))))) in registerMatchers()
/dports/devel/llvm12/llvm-project-12.0.1.src/clang-tools-extra/clang-tidy/bugprone/
H A DSpuriouslyWakeUpFunctionsCheck.cpp83 hasParent(compoundStmt(hasParent(whileStmt()))), in registerMatchers()
85 hasParent(compoundStmt(hasParent(forStmt()))), in registerMatchers()
87 hasParent(compoundStmt(hasParent(doStmt()))))) in registerMatchers()

12345678910>>...21