-
-
Notifications
You must be signed in to change notification settings - Fork 421
Expand file tree
/
Copy path.clang-format
More file actions
74 lines (57 loc) · 1.56 KB
/
.clang-format
File metadata and controls
74 lines (57 loc) · 1.56 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
# Configuração do clang-format para pgmodeler
# Baseado no estilo LLVM com customizações para o projeto
# Estilo base
BasedOnStyle: LLVM
# Indentação e tabs
IndentWidth: 4
UseTab: Always
TabWidth: 4
# Alinhamento de parâmetros
AlignAfterOpenBracket: DontAlign
BinPackParameters: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowAllArgumentsOnNextLine: true
# Estilo de chaves (Allman - chaves em nova linha)
BreakBeforeBraces: Allman
# Limite de colunas
ColumnLimit: 0
# Alinhamentos
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignTrailingComments: true
# Funções e statements curtos
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortBlocksOnASingleLine: Empty
# Quebras de linha
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
# Espaçamento
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: Never
SpaceInEmptyParentheses: false
# Ponteiros e referências
PointerAlignment: Right
ReferenceAlignment: Right
# Includes
SortIncludes: true
IncludeBlocks: Preserve
# Comentários
ReflowComments: true
# Macros e defines
IndentPPDirectives: None
# Namespace
NamespaceIndentation: None
# Access modifiers (public, private, protected)
AccessModifierOffset: -4
# Continuação de linhas
ContinuationIndentWidth: 16
IndentWrappedFunctionNames: false
AlignOperands: DontAlign
# Parâmetros específicos para C++
Standard: c++17