2 # Checks for key bits in English declarations. This file is itself parsed
3 # to determine the things checked for: lines containing "=yes" are assumed
4 # to be variables to be tested, and must be followed by a # and a comment
5 # stating the feature being tested.
7 # Copyright © 2012 Nick Bowler
9 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
10 # This is free software: you are free to do what the fuck you want to.
11 # There is NO WARRANTY, to the extent permitted by law.
14 declaration=yes # declaration of an identifier
16 abstract=yes # type name
18 inline=yes # inline function
20 redundant_funcspec=yes # redundant function specifiers
21 /function ([[:alnum:]_]* as/i\
22 named_parameter=yes # named function parameter
24 empty_prototype=yes # empty prototype declaration
25 /function returning/i\
26 non_prototype=yes # non-prototype function declaration.
28 variadic=yes # variadic function
30 const=yes # const qualifier
32 volatile=yes # volatile qualifier
34 restrict=yes # restrict qualifier
36 redundant_qualifier=yes # redundant type qualifiers
37 /variable-length array/i\
38 vla=yes # variable-length array
40 static=yes # static storage-class specifier
42 extern=yes # extern storage-class specifier
44 typedef=yes # typedef storage-class specifier
46 auto=yes # auto storage-class specifier
48 register=yes # register storage-class specifier
50 void=yes # void type specifier
52 char=yes # char type specifier
54 short=yes # short type specifier
56 int=yes # int type specifier
58 long=yes # long type specifier
60 float=yes # float type specifier
62 double=yes # double type specifier
64 signed=yes # signed type specifier
66 unsigned=yes # unsigned type specifier
68 bool=yes # _Bool type specifier
70 complex=yes # _Complex type specifier
72 imaginary=yes # _Imaginary type specifier
74 struct=yes # struct type specifier
76 union=yes # union type specifier
78 enum=yes # enum type specifier
80 pointer_to_array=yes # pointer to an array
81 /pointer to function/i\
82 pointer_to_function=yes # pointer to a function