diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-07-15 14:38:46 +0200 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-07-25 23:19:12 +0200 |
commit | 3ba7f29e393c28861e15e113ed3c9698bd00ef6f (patch) | |
tree | 74453de14155052aa74bd5ad01309e01844952c2 | |
parent | 1069b76d5bef127e98beb600cf279bba1fbd6163 (diff) | |
download | sparse-3ba7f29e393c28861e15e113ed3c9698bd00ef6f.tar.gz |
attribute: directly use attribute_specifier() to handle attributes
handle_attributes() used to also handle asm names and so used
the declarator method associated to the taken. But now, asm names
are handled in a separated function.
So, directly use attribute_specifier() to handle the attributes
instead of using it via the declarator method.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1816,7 +1816,7 @@ static struct token *handle_attributes(struct token *token, struct decl_state *c break; if (!(keyword->op->type & KW_ATTRIBUTE)) break; - token = keyword->op->declarator(token->next, ctx); + token = attribute_specifier(token->next, ctx); } return token; } |