aidl-format: 4-spaces indentation
Most users of AIDL are from Java where 4-space indentation is the
standard. Let's not change the practice.
Bug: 144540481
Test: aidl-format.sh
Change-Id: I04531938abc68555cd706a8950636fccceb0fbee
diff --git a/aidl-format.sh b/aidl-format.sh
index 06e4583..1030cca 100755
--- a/aidl-format.sh
+++ b/aidl-format.sh
@@ -60,7 +60,10 @@
local input="$1"
local temp="$(mktemp)"
cat "$input" | clang-format \
- --style='{BasedOnStyle: Google, BreakAfterJavaFieldAnnotations: false, ColumnLimit: 100}' \
+ --style='{BasedOnStyle: Google,
+ ColumnLimit: 100,
+ IndentWidth: 4,
+ ContinuationIndentWidth: 8}' \
--assume-filename=${input%.*}.java \
> "$temp"
mv "$temp" "$input"