diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000..8e7ff44ea --- /dev/null +++ b/.clang-format @@ -0,0 +1,25 @@ +--- +Language: Cpp + +SortIncludes: false + +BasedOnStyle: Chromium + +BreakBeforeBraces: Stroustrup + +AllowShortBlocksOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: true +AllowShortFunctionsOnASingleLine: Inline +AllowShortIfStatementsOnASingleLine: false + +ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' +ConstructorInitializerIndentWidth: '2' + +ColumnLimit: '150' +ContinuationIndentWidth: '2' +TabWidth: '2' +IndentWidth: '2' +AccessModifierOffset : '-2' +IndentCaseLabels: false +Cpp11BracedListStyle: 'true' +...