Verilator

Форк
0
/
.clang-format 
125 строк · 3.6 Кб
1
---
2
Language:        Cpp
3
# BasedOnStyle:  LLVM
4
AccessModifierOffset: -4
5
AlignAfterOpenBracket: Align
6
AlignConsecutiveAssignments: false
7
AlignConsecutiveDeclarations: false
8
AlignEscapedNewlines: DontAlign
9
AlignOperands:   true
10
AlignTrailingComments: false
11
AllowAllParametersOfDeclarationOnNextLine: true
12
AllowShortBlocksOnASingleLine: true
13
AllowShortCaseLabelsOnASingleLine: true
14
AllowShortFunctionsOnASingleLine: All
15
AllowShortIfStatementsOnASingleLine: true
16
AllowShortLoopsOnASingleLine: true
17
AlwaysBreakAfterDefinitionReturnType: None
18
AlwaysBreakAfterReturnType: None
19
AlwaysBreakBeforeMultilineStrings: false
20
AlwaysBreakTemplateDeclarations: true
21
BinPackArguments: true
22
BinPackParameters: true
23
BraceWrapping:
24
  AfterClass:      false
25
  AfterControlStatement: false
26
  AfterEnum:       false
27
  AfterFunction:   false
28
  AfterNamespace:  false
29
  AfterObjCDeclaration: false
30
  AfterStruct:     false
31
  AfterUnion:      false
32
  AfterExternBlock: false
33
  BeforeCatch:     false
34
  BeforeElse:      false
35
  IndentBraces:    false
36
  SplitEmptyFunction: true
37
  SplitEmptyRecord: true
38
  SplitEmptyNamespace: true
39
BreakBeforeBinaryOperators: All
40
BreakBeforeBraces: Attach
41
BreakBeforeInheritanceComma: false
42
BreakBeforeTernaryOperators: true
43
BreakConstructorInitializersBeforeComma: false
44
BreakConstructorInitializers: BeforeComma
45
BreakAfterJavaFieldAnnotations: false
46
BreakStringLiterals: true
47
ColumnLimit:     99
48
CommentPragmas:  '^ IWYU pragma:'
49
CompactNamespaces: false
50
ConstructorInitializerAllOnOneLineOrOnePerLine: false
51
ConstructorInitializerIndentWidth: 4
52
ContinuationIndentWidth: 4
53
Cpp11BracedListStyle: true
54
DerivePointerAlignment: false
55
DisableFormat:   false
56
ExperimentalAutoDetectBinPacking: false
57
FixNamespaceComments: true
58
ForEachMacros:
59
  - Q_FOREACH
60
  - BOOST_FOREACH
61

62
# Include grouping/sorting
63
SortIncludes:    true
64
IncludeBlocks:   Regroup
65
IncludeCategories:
66
  - Regex:           '"V3Pch.*\.h"'
67
    Priority:        -2 # Precompiled headers
68
  - Regex:           '"(config_build|verilated_config|verilatedos)\.h"'
69
    Priority:        -1 # Sepecials before main header
70
  - Regex:           '(<|")verilated.*'
71
    Priority:        1 # Runtime headers
72
  - Regex:           '"V3.*__gen.*\.h"'
73
    Priority:        3 # Generated internal headers separately
74
  - Regex:           '"V3.*"'
75
    Priority:        2 # Internal header
76
  - Regex:           '".*"'
77
    Priority:        4 # Other non-system headers
78
  - Regex:           '<[[:alnum:]_.]+>'
79
    Priority:        5 # Simple system headers next
80
  - Regex:           '<.*>'
81
    Priority:        6 # Other system headers next
82
IncludeIsMainRegex: '$'
83

84
IndentCaseLabels: false
85
IndentPPDirectives: None
86
IndentWidth:     4
87
IndentWrappedFunctionNames: false
88
JavaScriptQuotes: Leave
89
JavaScriptWrapImports: true
90
KeepEmptyLinesAtTheStartOfBlocks: true
91
MacroBlockBegin: ''
92
MacroBlockEnd:   ''
93
MaxEmptyLinesToKeep: 1
94
NamespaceIndentation: None
95
ObjCBlockIndentWidth: 2
96
ObjCSpaceAfterProperty: false
97
ObjCSpaceBeforeProtocolList: true
98
PenaltyBreakAssignment: 2
99
PenaltyBreakBeforeFirstCallParameter: 19
100
PenaltyBreakComment: 300
101
PenaltyBreakFirstLessLess: 120
102
PenaltyBreakString: 1000
103
PenaltyExcessCharacter: 1000000
104
PenaltyReturnTypeOnItsOwnLine: 60
105
PointerAlignment: Left
106
ReflowComments:  true
107
SortUsingDeclarations: true
108
SpaceAfterCStyleCast: false
109
SpaceAfterTemplateKeyword: true
110
SpaceBeforeAssignmentOperators: true
111
SpaceBeforeParens: ControlStatements
112
SpaceInEmptyParentheses: false
113
SpacesBeforeTrailingComments: 2
114
SpacesInAngles:  false
115
SpacesInContainerLiterals: true
116
SpacesInCStyleCastParentheses: false
117
SpacesInLineCommentPrefix:
118
  Minimum: 0
119
  Maximum: -1
120
SpacesInParentheses: false
121
SpacesInSquareBrackets: false
122
Standard:        Cpp11
123
TabWidth:        8
124
UseTab:          Never
125
...
126

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.