Fix Cppcheck self-check, extra whitespace in match patterns

This commit is contained in:
Daniel Marjamäki 2021-05-01 12:15:54 +02:00
parent 0bd1b1c249
commit a32d6257d5
1 changed files with 2 additions and 2 deletions

View File

@ -10827,7 +10827,7 @@ void Tokenizer::simplifyAttribute()
if (Token::Match(attr, "%name% ("))
attr = attr->linkAt(1);
if (Token::Match(attr, "[(,] constructor|__constructor__ [,()]")) {
if (Token::Match(attr, "[(,] constructor|__constructor__ [,()]")) {
if (!functok)
syntaxError(tok);
functok->isAttributeConstructor(true);
@ -10839,7 +10839,7 @@ void Tokenizer::simplifyAttribute()
functok->isAttributeDestructor(true);
}
else if (Token::Match(attr, "[(,] unused|__unused__|used|__used__ [,)]")) {
else if (Token::Match(attr, "[(,] unused|__unused__|used|__used__ [,)]")) {
Token *vartok = nullptr;
// check if after variable name