astyle formatting
This commit is contained in:
parent
aac65247ba
commit
46afc54c10
|
@ -2517,11 +2517,11 @@ void CheckOther::checkConstantFunctionParameter()
|
|||
|
||||
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next())
|
||||
{
|
||||
// TODO: False negatives. This pattern only checks for string.
|
||||
// Investigate if there are other classes in the std
|
||||
// namespace and add them to the pattern. There are
|
||||
// streams for example (however it seems strange with
|
||||
// const stream parameter).
|
||||
// TODO: False negatives. This pattern only checks for string.
|
||||
// Investigate if there are other classes in the std
|
||||
// namespace and add them to the pattern. There are
|
||||
// streams for example (however it seems strange with
|
||||
// const stream parameter).
|
||||
if (Token::Match(tok, "[,(] const std :: string %var% [,)]"))
|
||||
{
|
||||
passedByValueError(tok, tok->strAt(5));
|
||||
|
|
|
@ -669,7 +669,7 @@ private:
|
|||
// remove outer if (#2733)
|
||||
ASSERT_EQUALS("alloc ; return ; }", simplifycode("alloc ; if { if return use ; } return ; }"));
|
||||
ASSERT_EQUALS("alloc ; return ; }", simplifycode("alloc ; if { if(var) return use ; } return ; }"));
|
||||
TODO_ASSERT_EQUALS("alloc ; return ; }",
|
||||
TODO_ASSERT_EQUALS("alloc ; return ; }",
|
||||
"alloc ; if(var) { if return use ; } return ; }",
|
||||
simplifycode("alloc ; if(var) { if return use ; } return ; }"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue