File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1248,7 +1248,7 @@ void CheckClassImpl::initializationListUsage()
12481248 continue ;
12491249 if (var->isPointer () || var->isReference () || var->isEnumType ())
12501250 continue ;
1251- if (!WRONG_DATA (! var->valueType (), tok) && var->valueType ()->type > ValueType::Type::ITERATOR )
1251+ if (!var->valueType () || var->valueType ()->type > ValueType::Type::ITERATOR )
12521252 continue ;
12531253
12541254 // bailout: multi line lambda in rhs => do not warn
Original file line number Diff line number Diff line change @@ -536,9 +536,9 @@ void CheckFunctionsImpl::memsetZeroBytes()
536536 const SymbolDatabase *symbolDatabase = mTokenizer ->getSymbolDatabase ();
537537 for (const Scope *scope : symbolDatabase->functionScopes ) {
538538 for (const Token* tok = scope->bodyStart ->next (); tok != scope->bodyEnd ; tok = tok->next ()) {
539- if (Token::Match (tok, " memset|wmemset (" ) && ( numberOfArguments (tok)== 3 ) ) {
539+ if (Token::Match (tok, " memset|wmemset (" )) {
540540 const std::vector<const Token *> &arguments = getArguments (tok);
541- if (WRONG_DATA ( arguments.size () != 3U , tok) )
541+ if (arguments.size () != 3U )
542542 continue ;
543543 const Token* lastParamTok = arguments[2 ];
544544 if (MathLib::isNullValue (lastParamTok->str ()))
You can’t perform that action at this time.
0 commit comments