From 05769e8dccec1fca56b5f50ac2ec167844d4b089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 10 Apr 2020 13:14:38 +0200 Subject: [PATCH] Code cleanup --- lib/tokenize.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 7ffbd042f..f57fd5611 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -2994,7 +2994,6 @@ static bool setVarIdParseDeclaration(const Token **tok, const std::mapisName()) { if (cpp && Token::Match(tok2, "namespace|public|private|protected")) @@ -3043,7 +3042,7 @@ static bool setVarIdParseDeclaration(const Token **tok, const std::map= 1 && !par && Token::Match(tok2, "( [*&]") && Token::Match(tok2->link()->next(), "(|[")) { + } else if (singleNameCount >= 1 && Token::Match(tok2, "( [*&]") && Token::Match(tok2->link()->next(), "(|[")) { bracket = true; // Skip: Seems to be valid pointer to array or function pointer } else if (tok2->str() == "::") { singleNameCount = 0;