From a0d04a784ef442d3ca7544ba514516a92cd0feaf Mon Sep 17 00:00:00 2001 From: okdshin Date: Fri, 22 Jun 2018 16:45:44 +0900 Subject: [PATCH] add .gitignore and .clang-format --- .clang-format | 42 ++++++++++++++++++++++++++++++++++++++++++ .gitignore | 5 +++++ 2 files changed, 47 insertions(+) create mode 100644 .clang-format create mode 100644 .gitignore diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..a9d6017 --- /dev/null +++ b/.clang-format @@ -0,0 +1,42 @@ +--- +BasedOnStyle: 'LLVM' +AccessModifierOffset: -4 +AlignEscapedNewlinesLeft: true +AlignConsecutiveAssignments: false +AlignTrailingComments: true +AllowShortBlocksOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: 'Inline' +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterDefinitionReturnType: false +AlwaysBreakBeforeMultilineStrings: true +AlwaysBreakTemplateDeclarations: true +BinPackArguments: true +BinPackParameters: true +BreakBeforeBinaryOperators: 'None' +BreakBeforeBraces: 'Attach' +BreakConstructorInitializersBeforeComma: false +ColumnLimit: 80 +ConstructorInitializerAllOnOneLineOrOnePerLine: false +ConstructorInitializerIndentWidth: 2 +ContinuationIndentWidth: 2 +Cpp11BracedListStyle: true +DerivePointerBinding: true +IndentCaseLabels: true +IndentWidth: 4 +IndentWrappedFunctionNames: false +KeepEmptyLinesAtTheStartOfBlocks: true +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: 'All' +PointerAlignment: 'Left' +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: 'Never' +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInParentheses: false +Standard: 'Cpp11' +TabWidth: 4 +UseTab: 'Never' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6425fde --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +build* +data/* +external/protobuf/ +runx/onnx/onnx.pb.cc +runx/onnx/onnx.pb.h