astyle formatting
This commit is contained in:
parent
4c24b6a804
commit
74c0468a18
|
@ -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))) ||
|
||||||
|
|
Loading…
Reference in New Issue