-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.clang-format
More file actions
executable file
·42 lines (34 loc) · 935 Bytes
/
.clang-format
File metadata and controls
executable file
·42 lines (34 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# SPDX-FileCopyrightText: Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
---
Language: Cpp
# Base style
BasedOnStyle: LLVM
# Line length
ColumnLimit: 120
# Indentation
IndentWidth: 4
UseTab: Never
# Braces
BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
# Spacing
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
# Alignment
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignTrailingComments: true
# Include sorting
SortIncludes: true
IncludeBlocks: Regroup
# Other formatting options
AllowAllParametersOfDeclarationOnNextLine: false
BinPackParameters: false
BinPackArguments: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true