diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000000000000000000000000000000000..b7c58b7e74c2d42d37c66ce42fbfd3afb568a865 --- /dev/null +++ b/.clang-format @@ -0,0 +1,26 @@ +--- +Language: Cpp +BasedOnStyle: LLVM +AllowAllParametersOfDeclarationOnNextLine: false +AlwaysBreakTemplateDeclarations: true +BinPackArguments: false +BinPackParameters: false +BreakConstructorInitializers: BeforeComma +ColumnLimit: 120 +CommentPragmas: '^(!|NOLINT)' +ConstructorInitializerAllOnOneLineOrOnePerLine: true +IncludeBlocks: Regroup +IncludeCategories: + - Regex: '^<.*' + Priority: 2 + - Regex: '.*' + Priority: 1 +IndentCaseLabels: false +AllowShortCaseLabelsOnASingleLine: true +IndentWidth: 4 +KeepEmptyLinesAtTheStartOfBlocks: false +PenaltyReturnTypeOnItsOwnLine: 200 +SpacesBeforeTrailingComments: 1 +TabWidth: 4 +UseTab: Never +...