capstone
/
.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---
12AccessModifierOffset: -4
13AlignAfterOpenBracket: Align
14AlignConsecutiveAssignments: false
15AlignConsecutiveDeclarations: false
16AlignEscapedNewlines: DontAlign
17AlignOperands: true
18AlignTrailingComments:
19Kind: Always
20OverEmptyLines: 2
21AllowAllParametersOfDeclarationOnNextLine: false
22AllowShortBlocksOnASingleLine: false
23AllowShortCaseLabelsOnASingleLine: false
24AllowShortFunctionsOnASingleLine: None
25AllowShortIfStatementsOnASingleLine: false
26AllowShortLoopsOnASingleLine: false
27AlwaysBreakAfterDefinitionReturnType: None
28AlwaysBreakAfterReturnType: None
29AlwaysBreakBeforeMultilineStrings: false
30AlwaysBreakTemplateDeclarations: false
31BinPackArguments: true
32BinPackParameters: true
33BraceWrapping:
34AfterClass: false
35AfterControlStatement: false
36AfterEnum: false
37AfterFunction: true
38AfterNamespace: true
39AfterObjCDeclaration: false
40AfterStruct: false
41AfterUnion: false
42AfterExternBlock: false
43BeforeCatch: false
44BeforeElse: false
45IndentBraces: false
46SplitEmptyFunction: true
47SplitEmptyRecord: true
48SplitEmptyNamespace: true
49BreakBeforeBinaryOperators: None
50BreakBeforeBraces: Custom
51BreakBeforeInheritanceComma: false
52BreakBeforeTernaryOperators: false
53BreakConstructorInitializersBeforeComma: false
54BreakConstructorInitializers: BeforeComma
55BreakAfterJavaFieldAnnotations: false
56BreakStringLiterals: false
57ColumnLimit: 80
58CommentPragmas: '^ IWYU pragma:'
59CompactNamespaces: false
60ConstructorInitializerAllOnOneLineOrOnePerLine: false
61ConstructorInitializerIndentWidth: 8
62ContinuationIndentWidth: 8
63Cpp11BracedListStyle: false
64DerivePointerAlignment: false
65DisableFormat: false
66ExperimentalAutoDetectBinPacking: false
67FixNamespaceComments: false
68
69IncludeBlocks: Preserve
70IncludeCategories:
71- Regex: '.*'
72Priority: 1
73IncludeIsMainRegex: '(Test)?$'
74IndentCaseLabels: false
75IndentGotoLabels: false
76IndentPPDirectives: None
77IndentWidth: 8
78IndentWrappedFunctionNames: false
79JavaScriptQuotes: Leave
80JavaScriptWrapImports: true
81KeepEmptyLinesAtTheStartOfBlocks: false
82MacroBlockBegin: ''
83MacroBlockEnd: ''
84MaxEmptyLinesToKeep: 1
85NamespaceIndentation: None
86ObjCBinPackProtocolList: Auto
87ObjCBlockIndentWidth: 8
88ObjCSpaceAfterProperty: true
89ObjCSpaceBeforeProtocolList: true
90
91# Taken from git's rules
92PenaltyBreakAssignment: 10
93PenaltyBreakBeforeFirstCallParameter: 30
94PenaltyBreakComment: 10
95PenaltyBreakFirstLessLess: 0
96PenaltyBreakString: 10
97PenaltyExcessCharacter: 100
98PenaltyReturnTypeOnItsOwnLine: 60
99
100PointerAlignment: Right
101ReflowComments: false
102SortIncludes: false
103SortUsingDeclarations: false
104SpaceAfterCStyleCast: false
105SpaceAfterTemplateKeyword: true
106SpaceBeforeAssignmentOperators: true
107SpaceBeforeCtorInitializerColon: true
108SpaceBeforeInheritanceColon: true
109SpaceBeforeParens: ControlStatementsExceptForEachMacros
110SpaceBeforeRangeBasedForLoopColon: true
111SpaceInEmptyParentheses: false
112SpacesBeforeTrailingComments: 1
113SpacesInAngles: false
114SpacesInContainerLiterals: false
115SpacesInCStyleCastParentheses: false
116SpacesInParentheses: false
117SpacesInSquareBrackets: false
118Standard: Cpp03
119TabWidth: 8
120UseTab: Always
121