aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sort.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-12-16 07:42:28 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-12-17 23:29:15 +0100
commit0fe7ebb9cdb4b215ffaabac37610f94b1856b6ec (patch)
treed8c55f51db0fd3da739d9b6faf87a3fd91c01a13 /sort.c
parent87e9f4270a611738322712f572f12a9e395bfc73 (diff)
downloadsparse-dev-0fe7ebb9cdb4b215ffaabac37610f94b1856b6ec.tar.gz
show-parse: do not display base type's redundant specifiers
In do_show_type(), builtin_typename() is used to display builtin (base) types and modifier_string() is used to display modifiers. However, most base types contains some intrinsic modifiers, the type specifiers. So, a type like 'unsigned long' is displayed as 'unsigned long [unsigned] [long]'. Fix this redundancy by not displaying the specifiers when displaying a base_type (or an enum). Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'sort.c')
0 files changed, 0 insertions, 0 deletions