]> granicus.if.org Git - zfs/commit
Add cstyle.pl utility and cstyle.1 man page
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 30 Oct 2013 18:19:53 +0000 (11:19 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 30 Oct 2013 18:36:30 +0000 (11:36 -0700)
commita35beedfb3f25596b4ec9122742c1337083118f5
tree9f27922963030e0f6257bc13f636f47c51d92924
parent495b25a91a8f29aeec9e2965752a1fc9b9569583
Add cstyle.pl utility and cstyle.1 man page

Cstyle is the C source style checker used by Illumos.  Since the
original ZFS source was written using these style guidelines they
must also be followed by ZoL for consistency.

The checker has been added to the scripts directory and may be
run on a per file basis.  New patches should be careful to avoid
introducing new style warnings.

Additionally, the 'checkstyle' target has been added to the top
level Makefile and can be used to check the entire source tree.
While Zol has historically attempted to follow the SunOS style
guide the lack of a rigorous style checker has allowed various
warning to be introduced.  Currently there are 2211 reported
style violations and we want to gradually eliminate these from
the tree.

Note the cstyle.1 man page is provided under man/man1/cstyle.1
but since it is a developer utility it is not installed along
with the other man pages.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Makefile.am
man/man1/Makefile.am
man/man1/cstyle.1 [new file with mode: 0644]
scripts/Makefile.am
scripts/cstyle.pl [new file with mode: 0755]