From e3009bdd0b10c8d820d087675ab37539676ea462 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Tue, 13 May 2014 16:47:55 +0200 Subject: [PATCH] Tokenizer:simplifyKeyword(): Improved matching when the static keyword is removed. --- lib/tokenize.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index e3c353c44..4ace9415f 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -9268,8 +9268,9 @@ void Tokenizer::simplifyKeyword() // simplify static keyword: // void foo( int [ static 5 ] ); ==> void foo( int [ 5 ] ); - if (Token::Match(tok, "[ static ")) + if (Token::Match(tok, "[ static %num%")) { tok->deleteNext(); + } } }