Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
bitsandbytes
Commits
d863adb2
Unverified
Commit
d863adb2
authored
Jun 13, 2025
by
Matthew Douglas
Committed by
GitHub
Jun 13, 2025
Browse files
Add clang-format (#1677)
* Add clang-format rules * Update clang-format
parent
6bd94c27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
.clang-format
.clang-format
+36
-0
.pre-commit-config.yaml
.pre-commit-config.yaml
+6
-0
No files found.
.clang-format
0 → 100644
View file @
d863adb2
---
BasedOnStyle: LLVM
AlignAfterOpenBracket: BlockIndent
BinPackArguments: true
BinPackParameters: true
BracedInitializerIndentWidth: 4
ColumnLimit: 120
Cpp11BracedListStyle: true
IndentWidth: 4
IndentWrappedFunctionNames: true
PointerAlignment: Left
SeparateDefinitionBlocks: Always
Standard: c++17
StatementMacros:
- 'MAKE_PreconditionOptimizer32bit1State'
- 'MAKE_PreconditionOptimizer32bit2State'
- 'MAKE_PreconditionStatic8bit1State'
- 'MAKE_PreconditionStatic8bit2State'
- 'MAKE_Optimizer32bit1State'
- 'MAKE_optimizerStatic8bit1State'
- 'MAKE_optimizerStatic8bit2State'
- 'MAKE_OptimizerStatic8bit1StateBlockwise'
- 'MAKE_OptimizerStatic8bit2StateBlockwise'
- 'MAKE_kQuantizeBlockwise'
- 'MAKE_BLOCKWISE8'
- 'MAKE_ELEMENTWISE_FUNC'
- 'CMAKE_ELEMENTWISE_FUNC'
- 'MAKE_FUNC8'
- 'MAKE_FUNC32'
- 'MAKE_CBLOCKWISE8'
- 'MAKE_CFUNC8'
- 'MAKE_CFUNC32'
UseTab: Never
...
.pre-commit-config.yaml
View file @
d863adb2
...
...
@@ -21,3 +21,9 @@ repos:
rev
:
v1.26.0
hooks
:
-
id
:
typos
-
repo
:
https://github.com/pre-commit/mirrors-clang-format
rev
:
v20.1.6
hooks
:
-
id
:
clang-format
types_or
:
[
c++
,
c
,
cuda
]
files
:
^csrc/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment