astyle formatting

This commit is contained in:
Daniel Marjamäki 2014-03-06 16:21:57 +01:00
parent 354e84e7c8
commit 569db24756
1 changed files with 1 additions and 2 deletions

View File

@ -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);