NetBSD/usr.bin
rillig 870d1f87f1 lint: extract code for determining possible precedence confusion
The function check_precedence_confusion was pretty long, and right in
the middle of that function was the complicated part of determining
which of the operand combinations are confusing and which aren't.

Extract this part into a separate function to document on which
information this decision is based.  This makes it easier to understand
the code since there are fewer local variables around.

As a left-over from a previous commit, rop and rparn don't need to be
initialized twice, now that the assertion for a binary operator is in
place.

Remove the large and useless switch statement over all operator types.
This list was completely unsorted, for no apparent reason.  To see the
list of operators, better look them up in ops.def, there was no need to
have this list duplicated here.
2021-01-05 00:17:21 +00:00
..
apply
apropos
asa
at
audio
audiocfg
banner
base64
basename
bdes
biff
bthset
btkey
btpin
bzip2
bzip2recover
c11
c89
c99
cal
calendar
cap_mkdb
cdplay
checknr
chflags
chpass
cksum
cleantags
cmp
col
colcrt
colrm
column
comm
compress
config
crunch
csplit
ctags
cut
cvslatest
db
dc
deroff
dirname
du
eject
elf2aout
elf2ecoff
env
error
expand
extattr
false
fdformat
fgen
fincore
find
finger
flock
fmt
fold
fpr
from
fsplit
fstat
ftp
gcore
genassym
gencat
getaddrinfo
getconf
getent
getopt
gettext
gprof
grep
gzip
head
hesinfo
hexdump
iconv
id
indent
infocmp
innetgr
ipcrm
ipcs
join
jot
kdump
klist
ktrace
ktruss
lam
last
lastcomm
ldd
leave
locale
locate
lock
logger
login
logname
look
lorder
m4
machine
mail
make
man
menuc
mesg
midiplay
midirecord
mixerctl
mkcsmapper
mkdep
mkesdb
mkfifo
mklocale
mkstr
mktemp
mkubootimage
moduli
msgc
msgs
nbperf
nbsvtool
nc
netgroup
netstat
newgrp
newsyslog
nfsstat
nice
nl
nohup
pagesize
passwd
paste
patch
pathchk
pkill
pmap
pr
printenv
printf
progress
pwait
pwhash
qsubst
quota
radioctl
rdist
realpath
renice
resize
rev
revoke
rfcomm_sppd
rlogin
rpcgen
rpcinfo
rs
rsh
rump_allserver
rump_dhcpclient
rump_halt
rump_server
rump_wmd
rup
ruptime
rusers
rwall
rwho
script
sdiff
sdpquery
sed
seq
shar
shlock
shmif_dumpbus
showmount
shuffle
skey
skeyinfo
skeyinit
sockstat
soelim
sort
sortinfo
spell
split
stat
su
sys_info
systat
tabs
tail
talk
tcopy
tee
telnet
tftp
tic
time
timeout
tip
touch
tput
tr
true
tset
tsort
tty
ul
uname
unexpand
unifdef
uniq
units
unvis
unzip
usbhidaction
usbhidctl
users
utoppya
uudecode
uuencode
uuidgen
vacation
vgrind
videoctl
vis
vmstat
vndcompress
w
wall
wc
what
whatis
whereis
who
whois
write
xargs
xinstall
xlint
xstr
yes
ypcat
ypmatch
ypwhich
Makefile
Makefile.inc