astyle fix
This commit is contained in:
parent
cbc237c37b
commit
bf4ac5521d
|
@ -475,8 +475,8 @@ static int countParameters(const Token *tok)
|
|||
const char * CheckMemoryLeakInFunction::call_func(const Token *tok, std::list<const Token *> callstack, unsigned int varid, AllocType &alloctype, AllocType &dealloctype, bool &all, unsigned int sz)
|
||||
{
|
||||
if (std::bsearch(tok->strAt(0), call_func_white_list,
|
||||
sizeof(call_func_white_list) / sizeof(call_func_white_list[0]),
|
||||
sizeof(call_func_white_list[0]), call_func_white_list_compare))
|
||||
sizeof(call_func_white_list) / sizeof(call_func_white_list[0]),
|
||||
sizeof(call_func_white_list[0]), call_func_white_list_compare))
|
||||
return 0;
|
||||
|
||||
if (getAllocationType(tok, varid) != No || getReallocationType(tok, varid) != No || getDeallocationType(tok, varid) != No)
|
||||
|
|
|
@ -2161,7 +2161,7 @@ bool Tokenizer::simplifyQuestionMark()
|
|||
bool Tokenizer::simplifyCasts()
|
||||
{
|
||||
createLinks();
|
||||
|
||||
|
||||
bool ret = false;
|
||||
for (Token *tok = _tokens; tok; tok = tok->next())
|
||||
{
|
||||
|
@ -3103,7 +3103,7 @@ bool Tokenizer::simplifyCalculations()
|
|||
continue;
|
||||
|
||||
// + and - are calculated after *
|
||||
if (Token::Match(tok->next(),"[+-]"))
|
||||
if (Token::Match(tok->next(), "[+-]"))
|
||||
{
|
||||
if (tok->previous()->str() == "*")
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue