mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
5024046763
Make the style checker script accept right parentheses on their own lines. This is motivated by the Linux tracepoints macro DECLARE_EVENT_CLASS. The code within TP_fast_assign() (a parameter of DECLARE_EVENT_CLASS) is normal C assignments terminated by semicolons. But the style checker forbids us from following a semicolon with a non-blank and from preceding a right parenthesis with white space. Therefore the closing parenthesis must go on the next line, yet the style checker foribs us from indenting it for readability. Relaxing the no-non-blank-after-semicolon rule would open the door to too many bad style practices. So instead we relax the no-white-space-before-right-paren rule if the parenthesis is on its own line. The relaxation is overriden with the -p option so we still have a way to catch misuse of this style. Signed-off-by: Ned Bass <bass6@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> |
||
---|---|---|
.. | ||
zfs-images@3331601f6d | ||
zpios-profile | ||
zpios-test | ||
zpool-config | ||
.gitignore | ||
common.sh.in | ||
cstyle.pl | ||
dkms.mkconf | ||
dkms.postbuild | ||
kmodtool | ||
Makefile.am | ||
smb.sh | ||
zconfig.sh | ||
zfault.sh | ||
zfs2zol-patch.sed | ||
zfs.sh | ||
zimport.sh | ||
zpios-sanity.sh | ||
zpios-survey.sh | ||
zpios.sh | ||
zpool-create.sh |