[Bf-blender-cvs] [7f9338b3bd4] temp-clang-format: clang-format-scripts: add intern/guardedalloc

Campbell Barton noreply at git.blender.org
Mon Jan 7 08:47:59 CET 2019


Commit: 7f9338b3bd4be59aa1271646cc0fde879e9a3d96
Author: Campbell Barton
Date:   Mon Jan 7 18:47:25 2019 +1100
Branches: temp-clang-format
https://developer.blender.org/rB7f9338b3bd4be59aa1271646cc0fde879e9a3d96

clang-format-scripts: add intern/guardedalloc

===================================================================

M	clang-format-edited.sh
M	clang-format-migration.sh

===================================================================

diff --git a/clang-format-edited.sh b/clang-format-edited.sh
index d56c420fb90..59ef49172c5 100755
--- a/clang-format-edited.sh
+++ b/clang-format-edited.sh
@@ -1,6 +1,13 @@
 #!/bin/bash
 
-FILES=$(git diff --name-only source/ | egrep \\.\(c\|cc\|cpp\|cxx\|h\|hh\|hpp\|hxx\|m\|mm\)$)
+FILES=$(
+	git ls-tree -r HEAD \
+		intern/guardedalloc/ \
+		intern/string/ \
+		source/ \
+		--name-only |
+		egrep \\.\(c\|cc\|cpp\|cxx\|h\|hh\|hpp\|hxx\|m\|mm\)$
+	 )
 
 if [ -z "$FILES" ]; then
 	echo "Nothing to clang-format, exiting!"
diff --git a/clang-format-migration.sh b/clang-format-migration.sh
index 83e1ee0aa6c..ab81dbfb2ae 100755
--- a/clang-format-migration.sh
+++ b/clang-format-migration.sh
@@ -1,6 +1,13 @@
 #!/bin/bash
 
-FILES=$(git ls-tree -r HEAD source/ intern/string --name-only | egrep \\.\(c\|cc\|cpp\|cxx\|h\|hh\|hpp\|hxx\|m\|mm\)$)
+FILES=$(
+	git ls-tree -r HEAD \
+		intern/guardedalloc/ \
+		intern/string/ \
+		source/ \
+		--name-only |
+		egrep \\.\(c\|cc\|cpp\|cxx\|h\|hh\|hpp\|hxx\|m\|mm\)$
+	 )
 
 # First expand tabs
 SCRIPT=$(cat <<EOF



More information about the Bf-blender-cvs mailing list