summaryrefslogtreecommitdiff
path: root/.clang-format
blob: 807801b9a8c0c044369b5490e3de22f34359febd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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