Skip to content

Commit

Permalink
Code formating
Browse files Browse the repository at this point in the history
  • Loading branch information
gartung committed Dec 20, 2019
1 parent bfaebb7 commit 1a2113b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Utilities/StaticAnalyzers/src/CatchAll.cpp
Expand Up @@ -41,14 +41,16 @@ void CatchAll::checkASTCodeBody(const clang::Decl* D,

const clang::Stmt* CatchAll::process(const clang::Stmt* S) const {
if (clang::AttributedStmt::classof(S)) {
const clang::Stmt* np = nullptr;
auto const * Node = static_cast<const clang::AttributedStmt*>(S);
auto * SS = Node -> getSubStmt();
for (const auto *A : Node->getAttrs()){
if (clang::CXXTryStmt::classof(SS) && clang::CMSSaAllowAttr::classof(A)) { return np;}
const clang::Stmt* np = nullptr;
auto const* Node = static_cast<const clang::AttributedStmt*>(S);
auto* SS = Node->getSubStmt();
for (const auto* A : Node->getAttrs()) {
if (clang::CXXTryStmt::classof(SS) && clang::CMSSaAllowAttr::classof(A)) {
return np;
}
}
}

if (clang::CXXCatchStmt::classof(S) && checkCatchAll(static_cast<const clang::CXXCatchStmt*>(S)))
return S;
clang::Stmt::const_child_iterator b = S->child_begin();
Expand Down

0 comments on commit 1a2113b

Please sign in to comment.