Clang format

This commit is contained in:
Imbus 2025-02-09 17:44:00 +01:00
parent cda4287171
commit cc0eac299e
2 changed files with 10 additions and 0 deletions

8
.clang-format Normal file
View file

@ -0,0 +1,8 @@
BasedOnStyle: LLVM
IndentWidth: 4 # Use 4 spaces for indentation
TabWidth: 4 # Tab width is also 4 spaces
UseTab: Never # Always use spaces instead of tabs
ColumnLimit: 80 # Wrap lines after 80 characters
AllowShortLoopsOnASingleLine: true
AlwaysBreakTemplateDeclarations: true
BreakConstructorInitializers: BeforeComma

2
.gitignore vendored
View file

@ -6,3 +6,5 @@ ch32fun.h
ch32fun.ld ch32fun.ld
ch32v003hw.h ch32v003hw.h
ch32v003.ld ch32v003.ld
.cache
compile_commands.json