summaryrefslogtreecommitdiff
path: root/scripts/gst-indent-all
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gst-indent-all')
-rwxr-xr-xscripts/gst-indent-all13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/gst-indent-all b/scripts/gst-indent-all
index ee878d838b..556dd19eec 100755
--- a/scripts/gst-indent-all
+++ b/scripts/gst-indent-all
@@ -16,3 +16,16 @@ if test -f ".indentignore"; then
fi
fi
git ls-files "*.c" | "${filter_cmd[@]}" | xargs -d '\n' $BASEDIR/gst-indent
+
+if test -f ".indent_cpp_list"; then
+ filter_args=()
+ while read -r line; do
+ if test -n "$line"; then
+ filter_args+=("-e" "$line")
+ fi
+ done < ".indent_cpp_list"
+ if [[ ${#filter_args[@]} -gt 0 ]]; then
+ filter_cmd=("grep" "-E" "${filter_args[@]}")
+ git ls-files "*.cpp" | "${filter_cmd[@]}" | xargs -d '\n' $BASEDIR/gst-indent
+ fi
+fi