File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -9848,7 +9848,7 @@ void Tokenizer::simplifyAt()
9848
9848
std::set<std::string> var;
9849
9849
9850
9850
for (Token *tok = list.front(); tok; tok = tok->next()) {
9851
- if (Token::Match(tok, "%name%|] @ %num%|%name%|%str%|(")) {
9851
+ if (Token::Match(tok, "%name%|]|) @ %num%|%name%|%str%|(")) {
9852
9852
const Token *end = tok->tokAt(2);
9853
9853
if (end->isLiteral())
9854
9854
end = end->next();
Original file line number Diff line number Diff line change @@ -985,6 +985,8 @@ class TestTokenizer : public TestFixture {
985
985
986
986
ASSERT_EQUALS("int x [ 10 ] ;", tokenizeAndStringify("int x[10]@0x100;"));
987
987
988
+ ASSERT_EQUALS("void ( * f [ ] ) ( void ) ;", tokenizeAndStringify("void (*f[])(void)@0x100;")); // #13458
989
+
988
990
ASSERT_EQUALS("interrupt@ f ( ) { }", tokenizeAndStringify("@interrupt f() {}"));
989
991
990
992
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