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
|
||||
if (varid > 0 && Token::Match(tok, "[;{}] %varid% =", varid))
|
||||
{
|
||||
// using varid .. bailout
|
||||
if (!Token::Match(tok->tokAt(3), "%varid%", varid))
|
||||
break;
|
||||
pointerIsOutOfBounds = false;
|
||||
}
|
||||
// using varid .. bailout
|
||||
if (!Token::Match(tok->tokAt(3), "%varid%", varid))
|
||||
break;
|
||||
pointerIsOutOfBounds = false;
|
||||
}
|
||||
|
||||
// Array index..
|
||||
if ((varid > 0 && ((tok->str() == "return" || (!tok->isName() && !Token::Match(tok, "[.&]"))) && Token::Match(tok->next(), "%varid% [ %num% ]", varid))) ||
|
||||
|
|
Loading…
Reference in New Issue