Use Token::simpleMatch() for simple pattern
This commit is contained in:
parent
f2719ec6ca
commit
198c8878ee
|
@ -336,7 +336,7 @@ void CheckString::sprintfOverlappingData()
|
|||
|
||||
const std::vector<const Token *> args = getArguments(tok);
|
||||
|
||||
const int formatString = Token::Match(tok, "sprintf") ? 1 : 2;
|
||||
const int formatString = Token::simpleMatch(tok, "sprintf") ? 1 : 2;
|
||||
for (unsigned int argnr = formatString + 1; argnr < args.size(); ++argnr) {
|
||||
bool same = isSameExpression(_tokenizer->isCPP(),
|
||||
false,
|
||||
|
|
Loading…
Reference in New Issue