check_format.sh: remove cpp_headers exclusion
We don't track any files in test/cpp_headers, so there
is no need to do a grep -v to exclude files that
contain "cpp_headers". This was a remnant from before
we started using git ls-files to determine which files
to run through astyle.
Fixes: fb87f80c
("scripts/check_format.sh: only check tracked files")
Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: If08f0bd5c96990dc5e4ca4641c53f70a82590470
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14689
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
25f89bd584
commit
2f1cf63cfb
@ -127,11 +127,9 @@ function check_c_style() {
|
|||||||
rm -f astyle.log
|
rm -f astyle.log
|
||||||
touch astyle.log
|
touch astyle.log
|
||||||
git ls-files '*.[ch]' \
|
git ls-files '*.[ch]' \
|
||||||
| grep -v cpp_headers \
|
|
||||||
| xargs -P$(nproc) -n10 astyle --break-return-type --attach-return-type-decl \
|
| xargs -P$(nproc) -n10 astyle --break-return-type --attach-return-type-decl \
|
||||||
--options=.astylerc >> astyle.log
|
--options=.astylerc >> astyle.log
|
||||||
git ls-files '*.cpp' '*.cc' '*.cxx' '*.hh' '*.hpp' \
|
git ls-files '*.cpp' '*.cc' '*.cxx' '*.hh' '*.hpp' \
|
||||||
| grep -v cpp_headers \
|
|
||||||
| xargs -P$(nproc) -n10 astyle --options=.astylerc >> astyle.log
|
| xargs -P$(nproc) -n10 astyle --options=.astylerc >> astyle.log
|
||||||
if grep -q "^Formatted" astyle.log; then
|
if grep -q "^Formatted" astyle.log; then
|
||||||
echo " errors detected"
|
echo " errors detected"
|
||||||
|
Loading…
Reference in New Issue
Block a user