1
0
Fork 0
forked from fun/fun

Added .clang-format and .clang-tidy. No code changes. (0.41.5)

This commit is contained in:
Johannes Findeisen 2026-05-01 22:32:55 +02:00
commit 872eaf3ab3
3 changed files with 27 additions and 0 deletions

18
.clang-format Normal file
View file

@ -0,0 +1,18 @@
BasedOnStyle: LLVM
IndentWidth: 2
TabWidth: 2
UseTab: Never
ContinuationIndentWidth: 2
AccessModifierOffset: -2
BraceWrapping:
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterStruct: false
BeforeElse: false
IndentBraces: false
ColumnLimit: 0
AllowShortIfStatementsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline
PenaltyExcessCharacter: 50

7
.clang-tidy Normal file
View file

@ -0,0 +1,7 @@
Checks: >
clang-analyzer-*,
bugprone-*,
performance-*
WarningsAsErrors: ""
HeaderFilterRegex: ".*"
FormatStyle: none

2
.gitignore vendored
View file

@ -1,6 +1,8 @@
CMakeCache.txt
Doxyfile
.*
!.clang-format
!.clang-tidy
!.editorconfig
!.gitignore
!.github