feat: add clang-format file

Signed-off-by: yuanbo <yuanbo@huawei.com>
This commit is contained in:
yuanbo
2022-02-14 14:16:31 +08:00
parent 2a298641f5
commit 70ed389caa
2 changed files with 18 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
BasedOnStyle: Webkit
ColumnLimit: 120
PointerAlignment: Right
AlignAfterOpenBracket: DontAlign
AlignTrailingComments: true
AlignConsecutiveMacros: Consecutive
AllowShortFunctionsOnASingleLine: None
IndentCaseLabels: true
BreakBeforeBinaryOperators: None
SpaceBeforeParens: ControlStatements
SpaceBeforeParens: ControlStatementsExceptControlMacros
SpacesInCStyleCastParentheses: false
ForEachMacros:
- 'DLIST_FOR_EACH_ENTRY'
- 'DLIST_FOR_EACH_ENTRY_REVERSE'
- 'DLIST_FOR_EACH_ENTRY_SAFE'
+1
View File
@@ -69,6 +69,7 @@ Note:If the text contains special characters, please escape them according to th
<filefilter name="defaultFilter" desc="Files not to check">
<filteritem type="filename" name="*.lds|*.pod"/>
<filteritem type="filename" name="*.a|*.d|*.o|*.so|*.cmd|*.hcb|*.swp"/>
<filteritem type="filename" name="*.clang-format"/>
<filteritem type="filepath" name="dir name underproject/.*" desc="Describe the reason for filtering scan results"/>
</filefilter>
<filefilter name="defaultPolicyFilter" desc="Filters for compatibilitylicense header policies">