Change clang style for cpp in Car
- Line wrap spaces is 8.
- Constructor break is set to after colon.
- Modifier is not indented.
Bug: 148955788
Test: Run "git clang-format --style=file --extension='h,cpp,cc' HEAD~"
Change-Id: I959fe44e3f044e4cd2a181bd5beca30eae29693e
diff --git a/.clang-format b/.clang-format
index ee12236..01aae6c 100644
--- a/.clang-format
+++ b/.clang-format
@@ -5,16 +5,23 @@
---
Language: Cpp
BasedOnStyle: Google
+AlignOperands: false
AllowShortBlocksOnASingleLine: false
-AllowShortFunctionsOnASingleLine: false
-
-AccessModifierOffset: -2
-ColumnLimit: 100
+AllowShortFunctionsOnASingleLine: Inline
+AlwaysBreakBeforeMultilineStrings: false
CommentPragmas: NOLINT:.*
-DerivePointerAlignment: false
+ColumnLimit: 100
+AccessModifierOffset: -4
IndentWidth: 4
-PointerAlignment: Left
TabWidth: 4
+ContinuationIndentWidth: 8
+ConstructorInitializerIndentWidth: 6
+SpacesBeforeTrailingComments: 1
+IncludeBlocks: Preserve
+DerivePointerAlignment: false
+PointerAlignment: Left
UseTab: Never
-PenaltyExcessCharacter: 32
+BreakInheritanceList: AfterColon
+BreakConstructorInitializers: AfterColon
+PenaltyBreakBeforeFirstCallParameter: 100000
---