Skip to content

Commit 37d3264

Browse files
committed
style(cxx-cuda): update clang-format settings for CUDA and C++ templates
- Add BinPackArguments and BinPackParameters settings - Set PackConstructorInitializers to Never - Improve code formatting consistency across projects
1 parent 9db6d5c commit 37d3264

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

template/cuda/{{cookiecutter.project_slug}}/.clang-format

+3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ UseTab: Never # Exclusively use spaces for indentat
1414
AllowShortIfStatementsOnASingleLine: Never # Prevent single-line if statements
1515
AllowShortFunctionsOnASingleLine: Inline # Allow short functions on single line
1616
AllowShortLoopsOnASingleLine: false # Prevent single-line loops
17+
BinPackArguments: false
18+
BinPackParameters: OnePerLine
1719
BreakBeforeBraces: Attach # Attach braces to code block
1820
BreakBeforeBinaryOperators: NonAssignment # Break before non-assignment operators
1921
BreakBeforeTernaryOperators: true # Break before ternary operators
2022
BreakConstructorInitializers: BeforeColon # Break constructor initializers before colon
2123
BreakInheritanceList: BeforeColon # Break inheritance list before colon
2224
InsertBraces: true # Automatically insert braces for clarity
25+
PackConstructorInitializers: Never
2326

2427
# Language Features
2528
AccessModifierOffset: -4 # Offset for access modifiers

template/cxx/{{cookiecutter.project_slug}}/.clang-format

+3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ UseTab: Never # Exclusively use spaces for indentat
1414
AllowShortIfStatementsOnASingleLine: Never # Prevent single-line if statements
1515
AllowShortFunctionsOnASingleLine: Inline # Allow short functions on single line
1616
AllowShortLoopsOnASingleLine: false # Prevent single-line loops
17+
BinPackArguments: false
18+
BinPackParameters: OnePerLine
1719
BreakBeforeBraces: Attach # Attach braces to code block
1820
BreakBeforeBinaryOperators: NonAssignment # Break before non-assignment operators
1921
BreakBeforeTernaryOperators: true # Break before ternary operators
2022
BreakConstructorInitializers: BeforeColon # Break constructor initializers before colon
2123
BreakInheritanceList: BeforeColon # Break inheritance list before colon
2224
InsertBraces: true # Automatically insert braces for clarity
25+
PackConstructorInitializers: Never
2326

2427
# Language Features
2528
AccessModifierOffset: -4 # Offset for access modifiers

0 commit comments

Comments
 (0)