summaryrefslogtreecommitdiff
path: root/style_unify
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2017-03-23 15:31:47 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2017-04-07 16:32:33 +0800
commit85d5aa7602fcc5e0561f93eff155353cbf903816 (patch)
treef5816d85b8e42416c846c3b56984595c24da137f /style_unify
parent38a124e1f94682162ac12c00f8106ac6a627b3cd (diff)
downloadlibva-intel-driver-85d5aa7602fcc5e0561f93eff155353cbf903816.tar.gz
Unify the coding style in the driver
Linux coding style is used in the driver source code. Use the command below to format/indent .c/.h files $> astyle --style=linux -cnpUH -s4 -M120 <file> A script of style_unify is added in the top-level directory to handle all .c/.h files in the driver. There is no change to any functionality This fixes https://github.com/01org/intel-vaapi-driver/issues/99 Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'style_unify')
-rwxr-xr-xstyle_unify11
1 files changed, 11 insertions, 0 deletions
diff --git a/style_unify b/style_unify
new file mode 100755
index 00000000..61e75d9f
--- /dev/null
+++ b/style_unify
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+files=$(find src -name "*.[ch]")
+for i in $files
+do
+ echo $i
+ astyle --style=linux -cnpUH -s4 -M120 $i
+done
+
+
+