diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000..d5e3ac648 --- /dev/null +++ b/.clang-format @@ -0,0 +1,15 @@ +IndentWidth: 4 +UseCRLF: false +IndentCaseLabels: true +UseTab: ForIndentation +TabWidth: 4 +BreakBeforeBraces: Allman +AllowShortBlocksOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: WithoutElse +SpaceBeforeAssignmentOperators: true +SpaceBeforeCaseColon: false +SpaceBeforeParens: ControlStatementsExceptControlMacros +SpacesInCStyleCastParentheses: false +SpacesInConditionalStatement: false +SpacesInParentheses: false +SpacesInSquareBrackets: false diff --git a/.clang-tidy b/.clang-tidy index 4409189e0..912410670 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,21 +1,7 @@ --- # Configure clang-tidy for this project. -IndentWidth: 4 -UseCRLF: false -IndentCaseLabels: true -UseTab: UT_ForIndentation -TabWidth: 4 -BreakBeforeBraces: Allman -AllowShortBlocksOnASingleLine: SBS_Empty -AllowShortIfStatementsOnASingleLine: SIS_WithoutElse -SpaceBeforeAssignmentOperators: true -SpaceBeforeCaseColon: false -SpaceBeforeParens: SBPO_ControlStatementsExceptControlMacros -SpacesInCStyleCastParentheses: false -SpacesInConditionalStatement: false -SpacesInParentheses: false -SpacesInSquareBrackets: false + # Disabled: # -google-readability-namespace-comments the *_CLIENT_NS is a macro, and