8041 cstyle: space followed by a tab is always bad

Review Request #432 - Created April 6, 2017 and updated

Information
Marcel Telka
illumos-gate
master
8041
27920c2...
Reviewers
general
The cstyle(1onbld) should report all spaces followed by a tab as errors.
Without the fix:

$ /opt/onbld/bin/cstyle -pP usr/src/lib/libtnfctl/prb_child.c
usr/src/lib/libtnfctl/prb_child.c: 65: continuation line should be indented by 4 spaces
usr/src/lib/libtnfctl/prb_child.c: 66: continuation line should be indented by 4 spaces
usr/src/lib/libtnfctl/prb_child.c: 83: space after cast
usr/src/lib/libtnfctl/prb_child.c: 109: space after cast
usr/src/lib/libtnfctl/prb_child.c: 135: space after cast
usr/src/lib/libtnfctl/prb_child.c: 156: space after cast
$

With the fix:

$ /usr/bin/perl usr/src/tools/scripts/cstyle.pl -pP usr/src/lib/libtnfctl/prb_child.c
usr/src/lib/libtnfctl/prb_child.c: 65: continuation line should be indented by 4 spaces
usr/src/lib/libtnfctl/prb_child.c: 66: continuation line should be indented by 4 spaces
usr/src/lib/libtnfctl/prb_child.c: 71: space followed by a tab
usr/src/lib/libtnfctl/prb_child.c: 83: space after cast
usr/src/lib/libtnfctl/prb_child.c: 109: space after cast
usr/src/lib/libtnfctl/prb_child.c: 135: space after cast
usr/src/lib/libtnfctl/prb_child.c: 156: space after cast
$
Loading...