Format
This commit is contained in:
parent
c7a5d3c5f1
commit
786672e19d
|
@ -484,7 +484,7 @@ static bool isDanglingSubFunction(const Token* tokvalue, const Token* tok)
|
||||||
if (!f)
|
if (!f)
|
||||||
return false;
|
return false;
|
||||||
const Token* parent = tokvalue->astParent();
|
const Token* parent = tokvalue->astParent();
|
||||||
while(parent && !Token::Match(parent->previous(), "%name% (")) {
|
while (parent && !Token::Match(parent->previous(), "%name% (")) {
|
||||||
parent = parent->astParent();
|
parent = parent->astParent();
|
||||||
}
|
}
|
||||||
if (!Token::simpleMatch(parent, "("))
|
if (!Token::simpleMatch(parent, "("))
|
||||||
|
|
|
@ -1040,8 +1040,9 @@ public:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Function* nestedInFunction(const Scope* scope) {
|
static Function* nestedInFunction(const Scope* scope)
|
||||||
while(scope) {
|
{
|
||||||
|
while (scope) {
|
||||||
if (scope->type == Scope::eFunction)
|
if (scope->type == Scope::eFunction)
|
||||||
break;
|
break;
|
||||||
scope = scope->nestedIn;
|
scope = scope->nestedIn;
|
||||||
|
|
Loading…
Reference in New Issue