this repo has no description
1# Based on LLVM coding standards
2BasedOnStyle: LLVM
3
4# Use 4 spaces for indentation
5IndentWidth: 4
6
7# Use 4 spaces for continuations
8ContinuationIndentWidth: 4
9
10# Allow short functions to be on a single line
11AllowShortFunctionsOnASingleLine: false
12
13# Column limit for wrapping
14ColumnLimit: 0
15
16# Break before braces for functions and classes
17BreakBeforeBraces: Allman
18
19# Function declaration return type alignment
20AlignTrailingComments: true
21AlignAfterOpenBracket: true
22AlignEscapedNewlines: Left
23AlignOperands: true
24AlignConsecutiveAssignments: false
25AlignConsecutiveDeclarations: false
26
27# Control statements
28AllowShortIfStatementsOnASingleLine: true
29AllowShortLoopsOnASingleLine: false
30IndentCaseLabels: true
31
32# Pointer alignment
33PointerAlignment: Left
34
35# Space before and after operators
36SpaceBeforeParens: ControlStatements
37SpaceBeforeRangeBasedForLoopColon: true
38SpacesBeforeTrailingComments: 1
39SpacesInCStyleCastParentheses: false
40SpacesInContainerLiterals: false
41SpacesInParentheses: false
42
43# Namespace indentation
44NamespaceIndentation: None
45
46# Empty line before access modifiers in classes
47EmptyLineBeforeAccessModifier: LogicalBlock
48
49# Add space between statements
50SpaceBeforeAssignmentOperators: true
51
52# No space before opening brackets
53SpaceBeforeSquareBrackets: false
54
55# No space before or after '<' and '>' in template argument lists
56SpacesInAngles: false
57
58# Handling include statements
59IncludeBlocks: Preserve
60IncludeCategories:
61 - Regex: '^<.*\.h>'
62 Priority: 1
63 - Regex: '^".*\.h"'
64 Priority: 2
65
66# Keep empty lines at the start of blocks
67KeepEmptyLinesAtTheStartOfBlocks: true
68
69# Indentation style for preprocessor directives
70IndentPPDirectives: AfterHash
71
72# Wrap comments to fit within column limit
73ReflowComments: false