Add .clang-format

Taken from:
Repo: https://android.googlesource.com/platform/build/soong
Path: scripts/system-clang-format
HEAD: c56712943ff2c76051489cc8dffcb04c1dfe2a76
This commit is contained in:
lifehackerhansol 2024-10-04 22:45:13 -07:00
parent 6d74f51cd1
commit 01364b9220
No known key found for this signature in database
GPG Key ID: 80FB184AFC0B3B0E

13
.clang-format Normal file
View File

@ -0,0 +1,13 @@
BasedOnStyle: Google
Standard: Cpp11
AccessModifierOffset: -2
AllowShortFunctionsOnASingleLine: Inline
ColumnLimit: 100
CommentPragmas: NOLINT:.*
DerivePointerAlignment: false
IncludeBlocks: Preserve
IndentWidth: 4
ContinuationIndentWidth: 8
PointerAlignment: Left
TabWidth: 4
UseTab: Never