forked from python-greenlet/greenlet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
29 lines (23 loc) · 697 Bytes
/
.clang-format
File metadata and controls
29 lines (23 loc) · 697 Bytes
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