diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000000000..2ab48387dde910 --- /dev/null +++ b/.clang-format @@ -0,0 +1,15 @@ +--- +Language: Cpp +BasedOnStyle: Google +AccessModifierOffset: -4 +AllowShortFunctionsOnASingleLine: Inline +ColumnLimit: 120 +ConstructorInitializerIndentWidth: 8 # double of IndentWidth +ContinuationIndentWidth: 8 # double of IndentWidth +DerivePointerAlignment: false # always use PointerAlignment +IndentCaseLabels: false +IndentWidth: 4 +PointerAlignment: Left +ReflowComments: false +SortUsingDeclarations: false +SpacesBeforeTrailingComments: 1 diff --git a/.gitignore b/.gitignore index 3decb656697e34..a148b4fd1d2dfd 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,4 @@ be/tags .vscode .* !.gitignore +!.clang-format