Formatter + gitignore

This commit is contained in:
Imbus 2025-02-05 13:57:38 +01:00
parent f6b4a91e71
commit 07ed9f1dcf
2 changed files with 11 additions and 0 deletions

9
.clang-format Normal file
View file

@ -0,0 +1,9 @@
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
AlignConsecutiveMacros: true

2
.gitignore vendored
View file

@ -10,12 +10,14 @@
# Build directories # Build directories
build/ build/
bin/ bin/
.cache
# IDE and editor files # IDE and editor files
.vscode/ .vscode/
.idea/ .idea/
*.sublime-project *.sublime-project
*.sublime-workspace *.sublime-workspace
compile_commands.json
# Dependency directories # Dependency directories
lib/ lib/