capstone

Форк
0
/
.clang-format 
120 строк · 3.3 Кб
1
# SPDX-License-Identifier: GPL-2.0
2
#
3
# clang-format configuration file. Intended for clang-format >= 11.
4
#
5
# For more information, see:
6
#
7
#   Documentation/process/clang-format.rst
8
#   https://clang.llvm.org/docs/ClangFormat.html
9
#   https://clang.llvm.org/docs/ClangFormatStyleOptions.html
10
#
11
---
12
AccessModifierOffset: -4
13
AlignAfterOpenBracket: Align
14
AlignConsecutiveAssignments: false
15
AlignConsecutiveDeclarations: false
16
AlignEscapedNewlines: DontAlign
17
AlignOperands: true
18
AlignTrailingComments:
19
  Kind: Always
20
  OverEmptyLines: 2
21
AllowAllParametersOfDeclarationOnNextLine: false
22
AllowShortBlocksOnASingleLine: false
23
AllowShortCaseLabelsOnASingleLine: false
24
AllowShortFunctionsOnASingleLine: None
25
AllowShortIfStatementsOnASingleLine: false
26
AllowShortLoopsOnASingleLine: false
27
AlwaysBreakAfterDefinitionReturnType: None
28
AlwaysBreakAfterReturnType: None
29
AlwaysBreakBeforeMultilineStrings: false
30
AlwaysBreakTemplateDeclarations: false
31
BinPackArguments: true
32
BinPackParameters: true
33
BraceWrapping:
34
  AfterClass: false
35
  AfterControlStatement: false
36
  AfterEnum: false
37
  AfterFunction: true
38
  AfterNamespace: true
39
  AfterObjCDeclaration: false
40
  AfterStruct: false
41
  AfterUnion: false
42
  AfterExternBlock: false
43
  BeforeCatch: false
44
  BeforeElse: false
45
  IndentBraces: false
46
  SplitEmptyFunction: true
47
  SplitEmptyRecord: true
48
  SplitEmptyNamespace: true
49
BreakBeforeBinaryOperators: None
50
BreakBeforeBraces: Custom
51
BreakBeforeInheritanceComma: false
52
BreakBeforeTernaryOperators: false
53
BreakConstructorInitializersBeforeComma: false
54
BreakConstructorInitializers: BeforeComma
55
BreakAfterJavaFieldAnnotations: false
56
BreakStringLiterals: false
57
ColumnLimit: 80
58
CommentPragmas: '^ IWYU pragma:'
59
CompactNamespaces: false
60
ConstructorInitializerAllOnOneLineOrOnePerLine: false
61
ConstructorInitializerIndentWidth: 8
62
ContinuationIndentWidth: 8
63
Cpp11BracedListStyle: false
64
DerivePointerAlignment: false
65
DisableFormat: false
66
ExperimentalAutoDetectBinPacking: false
67
FixNamespaceComments: false
68

69
IncludeBlocks: Preserve
70
IncludeCategories:
71
  - Regex: '.*'
72
    Priority: 1
73
IncludeIsMainRegex: '(Test)?$'
74
IndentCaseLabels: false
75
IndentGotoLabels: false
76
IndentPPDirectives: None
77
IndentWidth: 8
78
IndentWrappedFunctionNames: false
79
JavaScriptQuotes: Leave
80
JavaScriptWrapImports: true
81
KeepEmptyLinesAtTheStartOfBlocks: false
82
MacroBlockBegin: ''
83
MacroBlockEnd: ''
84
MaxEmptyLinesToKeep: 1
85
NamespaceIndentation: None
86
ObjCBinPackProtocolList: Auto
87
ObjCBlockIndentWidth: 8
88
ObjCSpaceAfterProperty: true
89
ObjCSpaceBeforeProtocolList: true
90

91
# Taken from git's rules
92
PenaltyBreakAssignment: 10
93
PenaltyBreakBeforeFirstCallParameter: 30
94
PenaltyBreakComment: 10
95
PenaltyBreakFirstLessLess: 0
96
PenaltyBreakString: 10
97
PenaltyExcessCharacter: 100
98
PenaltyReturnTypeOnItsOwnLine: 60
99

100
PointerAlignment: Right
101
ReflowComments: false
102
SortIncludes: false
103
SortUsingDeclarations: false
104
SpaceAfterCStyleCast: false
105
SpaceAfterTemplateKeyword: true
106
SpaceBeforeAssignmentOperators: true
107
SpaceBeforeCtorInitializerColon: true
108
SpaceBeforeInheritanceColon: true
109
SpaceBeforeParens: ControlStatementsExceptForEachMacros
110
SpaceBeforeRangeBasedForLoopColon: true
111
SpaceInEmptyParentheses: false
112
SpacesBeforeTrailingComments: 1
113
SpacesInAngles: false
114
SpacesInContainerLiterals: false
115
SpacesInCStyleCastParentheses: false
116
SpacesInParentheses: false
117
SpacesInSquareBrackets: false
118
Standard: Cpp03
119
TabWidth: 8
120
UseTab: Always
121

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

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

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

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