Fix Cppcheck self-check, extra whitespace in match patterns
This commit is contained in:
parent
0bd1b1c249
commit
a32d6257d5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue