• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Language: Cpp
2
3# Access modifiers in the middle
4AccessModifierOffset: -2
5
6# Align escaped newlines as far left as possible
7AlignEscapedNewlinesLeft: true
8
9# Align all trailing comments
10AlignTrailingComments: true
11
12# Don't allow parameters to be placed on the next line, even though BinPackParameters is false
13AllowAllParametersOfDeclarationOnNextLine: false
14
15# Do not allow short functions/if statements/loops on a single line
16AllowShortFunctionsOnASingleLine: false
17AllowShortIfStatementsOnASingleLine: false
18AllowShortLoopsOnASingleLine: false
19
20# Don't force breaks before multiline strings
21AlwaysBreakBeforeMultilineStrings: false
22
23# Don't force breaks before template declarations
24AlwaysBreakTemplateDeclarations: false
25
26# Force breaks after definition return type
27AlwaysBreakAfterDefinitionReturnType: true
28
29# Arguments and parameters are either on one line or on one line each
30BinPackArguments: false
31BinPackParameters: false
32
33# Do not break before binary operators
34BreakBeforeBinaryOperators: None
35
36# Use the linux brace breaking style: Attach braces to context except for braces on functions,
37# namespaces and class definitions
38BreakBeforeBraces: Linux
39
40# Do not place ternary operators after line breaks
41BreakBeforeTernaryOperators: false
42
43# In the constructor initializers do not align the comma with the colon
44BreakConstructorInitializersBeforeComma: false
45
46# Force columns to be less than 100 characters
47ColumnLimit: 100
48
49# Constructor initializer all in one line or all on their own line
50ConstructorInitializerAllOnOneLineOrOnePerLine: true
51
52# Indent constructor initializers
53ConstructorInitializerIndentWidth: 8
54
55# Do not indent continuations
56ContinuationIndentWidth: 0
57
58# Do not use braced lists in c++11 style
59Cpp11BracedListStyle: false
60
61# Do not derive pointer alignment
62DerivePointerAlignment: false
63
64# Case labes are indented
65IndentCaseLabels: true
66
67# Do not indent function declarations
68IndentFunctionDeclarationAfterType: false
69
70# Indentation is 4 characters
71IndentWidth: 4
72
73# Do not keep empty lines at start of blocks
74KeepEmptyLinesAtTheStartOfBlocks: false
75
76# Keep at most 2 consecutive empty lines
77MaxEmptyLinesToKeep: 2
78
79# Do not indent namespaces
80NamespaceIndentation: None
81
82# Spaces for ObjC properties and protocol lists
83ObjCSpaceAfterProperty: true
84ObjCSpaceBeforeProtocolList: true
85
86# Penalties
87PenaltyBreakBeforeFirstCallParameter: 100
88PenaltyBreakComment: 10
89PenaltyBreakFirstLessLess: 0
90PenaltyBreakString: 100
91PenaltyExcessCharacter: 20
92PenaltyReturnTypeOnItsOwnLine: 20
93
94# Force pointers to typename (i.e. char* a instead of char *a)
95PointerAlignment: Left
96
97# Spaces after C-style casts and before assignments
98SpaceAfterCStyleCast: true
99SpaceBeforeAssignmentOperators: true
100
101# Only space before parentheses if they are control statements
102SpaceBeforeParens: ControlStatements
103
104# Single space before trailing comments
105SpacesBeforeTrailingComments: 1
106
107# No spaces in parentheses, angles, or square brackets
108SpaceInEmptyParentheses: false
109SpacesInAngles: false
110SpacesInCStyleCastParentheses: false
111SpacesInParentheses: false
112SpacesInSquareBrackets: false
113
114# Use c++11 as the language standard
115Standard: Cpp11
116
117# Tabs are 4 characters wide
118TabWidth: 4
119
120# Don't use tabs for indentation :-(
121UseTab: Never
122
123