3 Star 0 Fork 0

Gitee 极速下载 / openucxsource

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/openucx/ucx
克隆/下载
.clang-format 4.46 KB
一键复制 编辑 原始数据 按行查看 历史
# C
BasedOnStyle: LLVM
AlignEscapedNewlines: Indent
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: false
AlignConsecutiveStructMembers: true
AlignConsecutiveMacros: true
AlignDeclarationByPointer: true
AlignAfterOpenBracket: true
AlignOperands: true
PointerAlignment: Right
DerivePointerAlignment: false
AlignTrailingComments: false
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowDesignatedInitializersOnASingleLine: false
AlwaysBreakAfterReturnType: None
PenaltyReturnTypeOnItsOwnLine: 20
PenaltyBreakAssignment: 100
PenaltyExcessCharacter: 100
PenaltyBreakBeforeFirstCallParameter: 100
PenaltyBreakMemberAccess: 250
PenaltyBreakLastMemberAccess: 300
PenaltyIndentedWhitespace: 0
ColumnLimit: 80
AlwaysBreakBeforeMultilineStrings: false
BinPackArguments: true
BinPackParameters: true
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: false
BreakBeforeTernaryOperators: false
BreakStringLiterals: true
ContinuationIndentWidth: 8
IncludeBlocks: Regroup
IndentCaseLabels: false
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
IndentPPDirectives: None
MaxEmptyLinesToKeep: 2
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceInEmptyParentheses: false
SpaceBeforeParens: ControlStatementsExceptForEachMacros
SpaceBeforeAssignmentOperators: true
SpaceAfterCStyleCast: false
SortIncludes: false
ForEachMacros: ['UCS_STATIC_BITMAP_FOR_EACH_BIT',
'UCS_DYNAMIC_BITMAP_FOR_EACH_BIT',
'UCS_STATIC_BITMAP_FOR_EACH_BIT',
'FOR_EACH_ENTITY',
'ucs_carray_for_each',
'kh_foreach',
'kh_foreach_key',
'kh_foreach_value',
'UCP_PROTO_PERF_TYPE_FOREACH',
'ucp_unpacked_address_for_each',
'ucp_datatype_iter_iov_for_each',
'ucp_proto_perf_segment_foreach',
'ucs_array_for_each',
'UCS_BITMAP_FOR_EACH_BIT',
'ucs_for_each_bit',
'ucs_for_each_submask',
'ucs_hlist_for_each',
'ucs_hlist_for_each_extract',
'ucs_hlist_for_each_extract_if',
'ucs_hlist_for_each_safe',
'ucs_list_for_each',
'ucs_list_for_each_safe',
'ucs_memory_type_for_each',
'UCS_PP_FOREACH',
'UCS_PP_FOREACH_SEP',
'ucs_profile_for_each_location',
'ucs_ptr_array_for_each',
'ucs_ptr_array_locked_for_each',
'ucs_queue_for_each',
'ucs_queue_for_each_extract',
'ucs_queue_for_each_safe',
'ucs_timerq_for_each_expired',
'ucs_string_buffer_for_each_token',
'UCT_IB_IFACE_VERBS_FOREACH_RXWQE',
'UCT_RC_VERBS_IFACE_FOREACH_TXWQE',
'UCS_INIT_ONCE',
'UCS_TEST_F',
'UCX_PERF_TEST_FOREACH',
'ucs_lru_for_each']
StatementMacros : []
TypenameMacros: ['khash_t',
'ucs_array_s',
'ucs_static_bitmap_s']
WhitespaceSensitiveMacros: []
# CPP
Standard: Cpp11
AccessModifierOffset: -4
AlwaysBreakTemplateDeclarations: false
BreakBeforeInheritanceComma: false
BreakInheritanceList: AfterColon
BreakConstructorInitializers: AfterColon
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
Cpp11BracedListStyle: true
Cpp11BracedListLineBreak: true
FixNamespaceComments: true
NamespaceIndentation: None
UseTab: Never
ReflowComments: false
SortIncludes: false
IncludeCategories:
- Regex: '^"'
Priority: 1
- Regex: '^<'
Priority: 2
SortUsingDeclarations: true
TabWidth: 4
SpacesInAngles: false
SpacesBeforeTrailingComments: 1
SpaceAfterTemplateKeyword: false
SpacesInContainerLiterals: false
---
# Java
Language: Java
DisableFormat: true
1
https://gitee.com/mirrors/ucxsource.git
git@gitee.com:mirrors/ucxsource.git
mirrors
ucxsource
openucxsource
master

搜索帮助