Tokenizer:simplifyKeyword(): Improved matching when the static keyword is removed.
This commit is contained in:
parent
c1e37ff691
commit
e3009bdd0b
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue