diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2021-03-02 10:30:34 +0000 |
---|---|---|
committer | Kevin May <kevin.may@arm.com> | 2023-08-24 08:52:47 +0000 |
commit | e40cc8359b02a7786908294300c45b672cf6b0e4 (patch) | |
tree | afaaccc2b41a71b17ba714d061ab6bf631b3fd94 /.clang-format | |
parent | 7fbf8109a972f0508f82ea40acc103b5959d115b (diff) | |
download | armnn-e40cc8359b02a7786908294300c45b672cf6b0e4.tar.gz |
IVGCVSW-3979 Introduce clang-format scripts to ArmNN.
* Adding a .clang-format file and a script to call it.
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: Ia686557f66a6bc09a647b430161f9f7e29ffeed7
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000..df1588d8de --- /dev/null +++ b/.clang-format @@ -0,0 +1,34 @@ +BasedOnStyle: LLVM +AccessModifierOffset: -4 +AllowShortFunctionsOnASingleLine: None +AlwaysBreakTemplateDeclarations: true +BinPackParameters: false +BraceWrapping: + AfterClass: true + AfterControlStatement: true + AfterEnum: true + AfterFunction: true + AfterNamespace: true + AfterObjCDeclaration: true + AfterStruct: true + AfterUnion: true + AfterExternBlock: false + BeforeCatch: true + BeforeElse: true + IndentBraces: false + SplitEmptyFunction: false + SplitEmptyRecord: false + SplitEmptyNamespace: true +BreakBeforeBraces: Custom +BreakConstructorInitializersBeforeComma: true +BreakConstructorInitializers: BeforeColon +Cpp11BracedListStyle: false +IndentCaseLabels: true +IndentWidth: 4 +IndentWrappedFunctionNames: true +PointerAlignment: Left +SpacesInContainerLiterals: false +AlignConsecutiveAssignments: true +ColumnLimit: 120 +ReflowComments: false +SpacesBeforeTrailingComments: 4 |