diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-04-03 17:07:15 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-11-08 21:42:55 +0100 |
| commit | ffe9f9fef003d29b65d29b8da5416aff72baff5a (patch) | |
| tree | 5d73f752a98a796a252b0bf920965d159782221f /show-parse.c | |
| parent | 35db0f18f8153592ec8ed6ea0fa3650c2d3efded (diff) | |
| download | sparse-dev-ffe9f9fef003d29b65d29b8da5416aff72baff5a.tar.gz | |
add support for C11's _Atomic as type qualifier
This only add the parsing and checks as a type qualifier;
there is no operational semantic associated with it.
Note: this only support _Atomic as *type qualifier*, not
as a *type specifier* (partly because there an
ambiguity on how to parse '_Atomic' when followed
by an open parenthesis (can be valid as qualifier
and as specifier)).
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'show-parse.c')
| -rw-r--r-- | show-parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/show-parse.c b/show-parse.c index 825db692..a4ce6f68 100644 --- a/show-parse.c +++ b/show-parse.c @@ -126,6 +126,7 @@ const char *modifier_string(unsigned long mod) {MOD_CONST, "const"}, {MOD_VOLATILE, "volatile"}, {MOD_RESTRICT, "restrict"}, + {MOD_ATOMIC, "[atomic]"}, {MOD_SIGNED, "[signed]"}, {MOD_UNSIGNED, "[unsigned]"}, {MOD_CHAR, "[char]"}, |
