From dbbada7645b0422a89c53ab59bd88369adfa21df Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Mon, 12 Jun 2017 16:26:36 -0700 Subject: [PATCH] Add common C++ file extensions to astyle check Change-Id: Ie10edf0413c4090fa7fc49a47749014bf7239896 Signed-off-by: Ben Walker Reviewed-on: https://review.gerrithub.io/365081 Reviewed-by: Daniel Verkamp Tested-by: SPDK Automated Test System Reviewed-by: Jim Harris --- scripts/check_format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_format.sh b/scripts/check_format.sh index d319624eb..6fc35b9e5 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -16,7 +16,7 @@ if hash astyle; then # as-is to enable ongoing work to synch with a generic upstream DPDK vhost library, # rather than making diffs more complicated by a lot of changes to follow SPDK # coding standards. - git ls-files '*.[ch]' '*.cpp' | grep -v rte_vhost | grep -v cpp_headers | \ + git ls-files '*.[ch]' '*.cpp' '*.cc' '*.cxx' '*.hh' '*.hpp' | grep -v rte_vhost | grep -v cpp_headers | \ xargs astyle --options=.astylerc >> astyle.log if grep -q "^Formatted" astyle.log; then echo " errors detected"