parent
e8fb3c0546
commit
991191450a
|
@ -660,7 +660,7 @@ void CheckAutoVariables::checkVarLifetimeScope(const Token * start, const Token
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue