Skip to content

Commit

Permalink
Merge pull request #214 from python-greenlet/issue206
Browse files Browse the repository at this point in the history
Use clang-format and clang-tidy to PEP7 the source.
  • Loading branch information
jamadden committed Nov 18, 2020
2 parents a9a0c07 + fafa99c commit adca19b
Show file tree
Hide file tree
Showing 6 changed files with 1,796 additions and 1,696 deletions.
29 changes: 29 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# A clang-format style that approximates Python's PEP 7 -*- mode: yaml; -*-
# Initially based on
# https://gist.github.com/pganssle/0e3a5f828b4d07d79447f6ced8e7e4db
BasedOnStyle: Google
Language: Cpp

AlignAfterOpenBracket: Align
AllowShortBlocksOnASingleLine: false
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: All

BinPackArguments: false
BreakBeforeBraces: Stroustrup
BreakBeforeTernaryOperators: true

ColumnLimit: 79
DerivePointerAlignment: false

IndentWidth: 4
IndentPPDirectives: AfterHash


PointerAlignment: Left
ReflowComments: true
SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
TabWidth: 4
UseTab: Never
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ include *.rst
include *.cfg
include *.py
include *.ini
include .clang-format

recursive-include appveyor *.cmd
recursive-include appveyor *.ps1
Expand Down

0 comments on commit adca19b

Please sign in to comment.