C11: teach sparse about '--std={c11,gnu11}'
commit5373460f30621c21c5557ea5c3eaf9f8f66adff7
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Thu, 5 Jan 2017 03:22:20 +0000 (5 04:22 +0100)
committerChristopher Li <sparse@chrisli.org>
Mon, 13 Feb 2017 01:34:45 +0000 (13 09:34 +0800)
tree83576c3342618ede82efc4d623d2301cf782aedc
parent0f89a2c57648682bb4c8c195feadcb750f10fd52
C11: teach sparse about '--std={c11,gnu11}'

Now that support have been added for C11 new syntax we can accept
'--std={c11,gnu11}' no more dying with "Unsupported C dialect" message.
Also adjust __STDC_VERSION__ accordingly and define the few
associated feature macros (__STD_NO_ATOMICS__, ...).

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
lib.c
validation/c11-stdc-version.c [new file with mode: 0644]