Skip to content

Commit 1970878

Browse files
committed
format
1 parent 6e5b86b commit 1970878

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

‎lib/checkleakautovar.cpp‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ static const Token * isFunctionCall(const Token * nameToken)
279279
* @param tok on the LHS of a function call
280280
* @return opening parenthesis token or nullptr if not a function call
281281
*/
282-
static const Token *isAnonymousFunctionCall(const Token *tok)
282+
static const Token *isAnonymousFunctionCall(const Token *tok)
283283
{
284284
if (!tok || tok->isStandardType())
285285
return nullptr;
@@ -836,13 +836,15 @@ bool CheckLeakAutoVarImpl::checkScope(const Token * const startToken,
836836

837837
continue;
838838

839-
// top level call to an anonymous function
840-
} else if (const Token *lpar = isAnonymousFunctionCall(tok)) {
839+
}
840+
// top level call to an anonymous function
841+
else if (const Token *lpar = isAnonymousFunctionCall(tok)) {
841842
functionCall(nullptr, lpar, varInfo, VarInfo::AllocInfo(0, VarInfo::NOALLOC), nullptr);
842843
tok = lpar->link();
843844

844-
// goto => weird execution path
845-
} else if (tok->str() == "goto") {
845+
}
846+
// goto => weird execution path
847+
else if (tok->str() == "goto") {
846848
varInfo.clear();
847849
return false;
848850
}

0 commit comments

Comments
 (0)