mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
ensure that no C source file uses TABs for indentation
* Makefile.maint (sc_TAB_in_indentation): New rule.
This commit is contained in:
parent
5bf824ea10
commit
3b83d22e79
@ -1,5 +1,8 @@
|
|||||||
Thu Apr 10 18:54:03 CEST 2008 Jim Meyering <meyering@redhat.com>
|
Thu Apr 10 18:54:03 CEST 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
|
ensure that no C source file uses TABs for indentation
|
||||||
|
* Makefile.maint (sc_TAB_in_indentation): New rule.
|
||||||
|
|
||||||
Convert TAB-based indentation in C sources to use only spaces.
|
Convert TAB-based indentation in C sources to use only spaces.
|
||||||
Done using this command (also includes .c.in and .h.in files):
|
Done using this command (also includes .c.in and .h.in files):
|
||||||
for i in $(g ls-files|grep -E '\.[ch](\.in)?$'|grep -v gnulib); do
|
for i in $(g ls-files|grep -E '\.[ch](\.in)?$'|grep -v gnulib); do
|
||||||
|
@ -287,6 +287,17 @@ sc_trailing_blank:
|
|||||||
{ echo '$(ME): found trailing blank(s)' \
|
{ echo '$(ME): found trailing blank(s)' \
|
||||||
1>&2; exit 1; } || :
|
1>&2; exit 1; } || :
|
||||||
|
|
||||||
|
# Ensure that no C source file uses TABs for indentation.
|
||||||
|
# Also match *.h.in files, to get libvirt.h.in.
|
||||||
|
# Exclude files in gnulib, since they're imported.
|
||||||
|
sc_TAB_in_indentation:
|
||||||
|
@grep -lE '^ * ' /dev/null \
|
||||||
|
$$($(VC_LIST_EXCEPT) \
|
||||||
|
| grep -E '\.[ch](\.in)?$$' \
|
||||||
|
| grep -v '^gnulib/') && \
|
||||||
|
{ echo '$(ME): found TAB(s) use for indentation; use spaces' \
|
||||||
|
1>&2; exit 1; } || :
|
||||||
|
|
||||||
# Match lines like the following, but where there is only one space
|
# Match lines like the following, but where there is only one space
|
||||||
# between the options and the description:
|
# between the options and the description:
|
||||||
# -D, --all-repeated[=delimit-method] print all duplicate lines\n
|
# -D, --all-repeated[=delimit-method] print all duplicate lines\n
|
||||||
|
Loading…
Reference in New Issue
Block a user