From e40cc8359b02a7786908294300c45b672cf6b0e4 Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Tue, 2 Mar 2021 10:30:34 +0000 Subject: IVGCVSW-3979 Introduce clang-format scripts to ArmNN. * Adding a .clang-format file and a script to call it. Signed-off-by: Colm Donelan Change-Id: Ia686557f66a6bc09a647b430161f9f7e29ffeed7 --- .clang-format | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .clang-format (limited to '.clang-format') 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 -- cgit v1.2.1