Files
TheRock/rocm-systems/projects/rccl/.clang-format
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

114 lines
3.4 KiB
YAML

Language: Cpp
BasedOnStyle: Google
# NCCL only have ~2% lines longer than 120
ColumnLimit: 120
# Blank lines
MaxEmptyLinesToKeep: 1
KeepEmptyLines:
AtStartOfFile: false
# Indentation Sizes
IndentWidth: 2
ContinuationIndentWidth: 2
# align public:/private: with struct/class
AccessModifierOffset: -2
ConstructorInitializerIndentWidth: 2
UseTab: Never
# Brace style: K&R (Google default — same line)
BreakBeforeBraces: Attach
# case at same indent level as switch
IndentCaseLabels: false
# add extra indentation for compound stmt in case block
IndentCaseBlocks: true
# Pointer: type-side (int*, not int *)
PointerAlignment: Left
# Don't align macro backslash, avoids unnecessary reformatting
AlignEscapedNewlines: DontAlign
# Allow One-liners
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLoopsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortEnumsOnASingleLine: false
# Do not allow clang-format to add or remove braces in control statements
# This help preserving developer's intention on braces
InsertBraces: false
RemoveBracesLLVM: false
# template<> -> template <>
SpaceAfterTemplateKeyword: true
# Namespace bodies: indented (majority of codebase uses indentation inside namespaces)
NamespaceIndentation: None
## Line Breaking and Wrapping behaviors
# When args don't fit on one line, break after ( and indent args by ContinuationIndentWidth
AlignAfterOpenBracket: true
BreakBeforeCloseBracketBracedList: true
BreakBeforeInlineASMColon: OnlyMultiline
AlwaysBreakBeforeMultilineStrings: false
# pack arguments and parameters tightly
BinPackArguments: true
BinPackParameters: BinPack
PackConstructorInitializers: BinPack
# binary operators trailing on previous line
BreakBeforeBinaryOperators: None
# ? : operators trailing on previous line and never break before ?
BreakBeforeTernaryOperators: false
# template <> always on its own line in declaration
BreakTemplateDeclarations: Yes
# Penalty tuning
# increase penalty for early breaking at the opening parenthesis,
# making BinPack behavior nicely and less likely to break after the opening parenthesis
PenaltyBreakOpenParenthesis: 33
# AllowAllArgumentsOnNextLine: true
# AllowAllParametersOfDeclarationOnNextLine: true
# Preprocessor directives: keep at column 0
IndentPPDirectives: None
# Do not sort or regroup include
IncludeBlocks: Preserve
SortIncludes: false
# Don't align other things, reducing unnecessary reformatting
AlignConsecutiveAssignments: None
AlignConsecutiveDeclarations: None
# Only reindent comments, do not reflow comments — preserve existing line breaks in comments
ReflowComments: IndentOnly
# Trailing inline comments: leave them where they are (don't reposition)
SpacesBeforeTrailingComments: 1
AlignTrailingComments:
AlignPPAndNotPP: false
Kind: Leave # we don't want unnecessarily aligning the all the trailing comments, but Leave option has a bug right now
# struct { int a:1 };
BitFieldColonSpacing: None
IndentExternBlock: NoIndent
SortUsingDeclarations: Never
# Allow turn-off formatting of oneline or next line with comment start with `// FORMAT-OFF`.
OneLineFormatOffRegex: ^(// FORMAT-OFF:?)
# Teach clang-format that these user-defined NVML types are types, not variables,
# so pointer alignment (PointerAlignment: Left) is applied correctly when they appear
# as a single named pointer parameter in a macro argument, e.g. (Type *name).
TypeNames:
- nvmlConfComputeSystemState_t
- nvmlSystemConfComputeSettings_t
WhitespaceSensitiveMacros:
- STR
- STR2