astyle formatting

[ci skip]
This commit is contained in:
versat 2019-01-11 12:56:31 +01:00
parent e8fb3c0546
commit 991191450a
1 changed files with 3 additions and 3 deletions

View File

@ -657,10 +657,10 @@ void CheckAutoVariables::checkVarLifetimeScope(const Token * start, const Token
}
if (tok->str() == "{" && tok->scope()) {
// Check functions in local classes
if (tok->scope()->type == Scope::eClass ||
tok->scope()->type == Scope::eStruct ||
if (tok->scope()->type == Scope::eClass ||
tok->scope()->type == Scope::eStruct ||
tok->scope()->type == Scope::eUnion) {
for(const Function& f:tok->scope()->functionList) {
for (const Function& f:tok->scope()->functionList) {
if (f.functionScope)
checkVarLifetimeScope(f.functionScope->bodyStart, f.functionScope->bodyEnd);
}