File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -9825,7 +9825,7 @@ void Tokenizer::simplifyAt()
9825
9825
std::set<std::string> var;
9826
9826
9827
9827
for (Token *tok = list.front (); tok; tok = tok->next ()) {
9828
- if (Token::Match (tok, " %name%|] @ %num%|%name%|%str%|(" )) {
9828
+ if (Token::Match (tok, " %name%|]|) @ %num%|%name%|%str%|(" )) {
9829
9829
const Token *end = tok->tokAt (2 );
9830
9830
if (end->isLiteral ())
9831
9831
end = end->next ();
Original file line number Diff line number Diff line change @@ -995,6 +995,8 @@ class TestTokenizer : public TestFixture {
995
995
996
996
ASSERT_EQUALS (" int x [ 10 ] ;" , tokenizeAndStringify (" int x[10]@0x100;" ));
997
997
998
+ ASSERT_EQUALS (" void ( * f [ ] ) ( void ) ;" , tokenizeAndStringify (" void (*f[])(void)@0x100;" )); // #13458
999
+
998
1000
ASSERT_EQUALS (" interrupt@ f ( ) { }" , tokenizeAndStringify (" @interrupt f() {}" ));
999
1001
1000
1002
ASSERT_EQUALS (" const short MyVariable = 0xF0F0 ;" , tokenizeAndStringify (" const short MyVariable @ \" MYOWNSECTION\" = 0xF0F0; " )); // #12602
You can’t perform that action at this time.
0 commit comments