Added .clang-format and .clang-tidy. No code changes. (0.41.5)
This commit is contained in:
parent
892fa3cfbf
commit
872eaf3ab3
3 changed files with 27 additions and 0 deletions
18
.clang-format
Normal file
18
.clang-format
Normal 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
7
.clang-tidy
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
Checks: >
|
||||
clang-analyzer-*,
|
||||
bugprone-*,
|
||||
performance-*
|
||||
WarningsAsErrors: ""
|
||||
HeaderFilterRegex: ".*"
|
||||
FormatStyle: none
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,6 +1,8 @@
|
|||
CMakeCache.txt
|
||||
Doxyfile
|
||||
.*
|
||||
!.clang-format
|
||||
!.clang-tidy
|
||||
!.editorconfig
|
||||
!.gitignore
|
||||
!.github
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue