Skip to content

Commit fafa99c

Browse files
committed
Use clang-format and clang-tidy to PEP7 the source.
Fixes #206
1 parent a9a0c07 commit fafa99c

File tree

6 files changed

+1796
-1696
lines changed

6 files changed

+1796
-1696
lines changed

.clang-format

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# A clang-format style that approximates Python's PEP 7 -*- mode: yaml; -*-
2+
# Initially based on
3+
# https://gist.github.com/pganssle/0e3a5f828b4d07d79447f6ced8e7e4db
4+
BasedOnStyle: Google
5+
Language: Cpp
6+
7+
AlignAfterOpenBracket: Align
8+
AllowShortBlocksOnASingleLine: false
9+
AllowShortIfStatementsOnASingleLine: Never
10+
AllowShortLoopsOnASingleLine: false
11+
AlwaysBreakAfterReturnType: All
12+
13+
BinPackArguments: false
14+
BreakBeforeBraces: Stroustrup
15+
BreakBeforeTernaryOperators: true
16+
17+
ColumnLimit: 79
18+
DerivePointerAlignment: false
19+
20+
IndentWidth: 4
21+
IndentPPDirectives: AfterHash
22+
23+
24+
PointerAlignment: Left
25+
ReflowComments: true
26+
SpaceBeforeParens: ControlStatements
27+
SpacesInParentheses: false
28+
TabWidth: 4
29+
UseTab: Never

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ include *.rst
2727
include *.cfg
2828
include *.py
2929
include *.ini
30+
include .clang-format
3031

3132
recursive-include appveyor *.cmd
3233
recursive-include appveyor *.ps1

0 commit comments

Comments
 (0)