!519 add clang-format conf

Merge pull request !519 from chuchihtung/Feature
This commit is contained in:
openharmony_ci 2024-11-13 02:23:49 +00:00 committed by Gitee
commit faee4f1222
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

15
.clang-format Normal file
View File

@ -0,0 +1,15 @@
---
BasedOnStyle: Google
IndentWidth: 4
ColumnLimit: 120
---
Language: Cpp
AccessModifierOffset: -4
AllowShortIfStatementsOnASingleLine: Never
AlwaysBreakBeforeMultilineStrings: false
DerivePointerAlignment: false
IncludeBlocks: Preserve
IndentCaseBlocks: true
PackConstructorInitializers: CurrentLine
SpacesBeforeTrailingComments: 1
---