astyle formatting

This commit is contained in:
Daniel Marjamäki 2011-10-12 22:06:19 +02:00
parent 4c24b6a804
commit 74c0468a18
1 changed files with 5 additions and 5 deletions

View File

@ -915,11 +915,11 @@ void CheckBufferOverrun::checkScope(const Token *tok, const std::vector<std::str
// reassign buffer // reassign buffer
if (varid > 0 && Token::Match(tok, "[;{}] %varid% =", varid)) if (varid > 0 && Token::Match(tok, "[;{}] %varid% =", varid))
{ {
// using varid .. bailout // using varid .. bailout
if (!Token::Match(tok->tokAt(3), "%varid%", varid)) if (!Token::Match(tok->tokAt(3), "%varid%", varid))
break; break;
pointerIsOutOfBounds = false; pointerIsOutOfBounds = false;
} }
// Array index.. // Array index..
if ((varid > 0 && ((tok->str() == "return" || (!tok->isName() && !Token::Match(tok, "[.&]"))) && Token::Match(tok->next(), "%varid% [ %num% ]", varid))) || if ((varid > 0 && ((tok->str() == "return" || (!tok->isName() && !Token::Match(tok, "[.&]"))) && Token::Match(tok->next(), "%varid% [ %num% ]", varid))) ||