Add clang-format style that approximates Python's PEP 7 from pganssle/zoneinfo

This commit is contained in:
Hugo van Kemenade 2020-07-09 15:32:14 +03:00 committed by Andrew Murray
parent 56e7d1fd9b
commit 5d968accf5
2 changed files with 19 additions and 0 deletions

18
.clang-format Normal file
View File

@ -0,0 +1,18 @@
# A clang-format style that approximates Python's PEP 7
# Useful for IDE integration
BasedOnStyle: Google
AlwaysBreakAfterReturnType: All
AllowShortIfStatementsOnASingleLine: false
AlignAfterOpenBracket: Align
BreakBeforeBraces: Stroustrup
ColumnLimit: 79
DerivePointerAlignment: false
IndentWidth: 4
Language: Cpp
PointerAlignment: Right
ReflowComments: true
SortIncludes: false
SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
TabWidth: 4
UseTab: Never

View File

@ -18,6 +18,7 @@ graft docs
# build/src control detritus # build/src control detritus
exclude .appveyor.yml exclude .appveyor.yml
exclude .clang-format
exclude .coveragerc exclude .coveragerc
exclude .editorconfig exclude .editorconfig
exclude .readthedocs.yml exclude .readthedocs.yml