astyle formatting
This commit is contained in:
parent
354e84e7c8
commit
569db24756
|
@ -200,8 +200,7 @@ void CheckAutoVariables::autoVariables()
|
|||
tok = Token::findmatch(tok->next(), "%var%");
|
||||
if (isAutoVarArray(tok))
|
||||
errorInvalidDeallocation(tok);
|
||||
}
|
||||
else if (Token::Match(tok, "free ( & %var% ) ;") || Token::Match(tok, "delete [| ]| (| & %var% !![")) {
|
||||
} else if (Token::Match(tok, "free ( & %var% ) ;") || Token::Match(tok, "delete [| ]| (| & %var% !![")) {
|
||||
tok = Token::findmatch(tok->next(), "%var%");
|
||||
if (tok->variable()->isLocal())
|
||||
errorInvalidDeallocation(tok);
|
||||
|
|
Loading…
Reference in New Issue