From a32d6257d522c245238e7f16b613664b8e5c28fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 1 May 2021 12:15:54 +0200 Subject: [PATCH] Fix Cppcheck self-check, extra whitespace in match patterns --- lib/tokenize.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 777266fae..3b04feeb7 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -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