diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000000..6782cbef2e38 --- /dev/null +++ b/.clang-format @@ -0,0 +1,28 @@ +BasedOnStyle: Microsoft +AlignConsecutiveMacros: AcrossEmptyLinesAndComments +AlignEscapedNewlines: Left +AlignTrailingComments: true +AllowShortBlocksOnASingleLine: Always +AllowShortCaseLabelsOnASingleLine: true +AllowShortFunctionsOnASingleLine: All +AllowShortIfStatementsOnASingleLine: AllIfsAndElse +AlwaysBreakAfterReturnType: None +ColumnLimit: 320 +IndentWidth: 4 +PointerAlignment: Right +SpaceInEmptyParentheses: false +SpacesInCStyleCastParentheses: false +TabWidth: 4 +UseTab: Never +IndentPPDirectives: BeforeHash +AlignConsecutiveAssignments: Consecutive +BraceWrapping: + AfterEnum: false +BreakFunctionDefinitionParameters: false +Cpp11BracedListStyle: false +IndentCaseLabels: false +MaxEmptyLinesToKeep: 2 +# ReflowComments: true +SpaceAfterCStyleCast: false +SpaceAfterLogicalNot: false +SpacesBeforeTrailingComments: 1