Add clang format and tidy configs
This commit is contained in:
31
.clang-format
Normal file
31
.clang-format
Normal file
@@ -0,0 +1,31 @@
|
||||
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
|
||||
Language: Cpp
|
||||
BasedOnStyle: LLVM
|
||||
AccessModifierOffset: -4
|
||||
BreakBeforeBraces: Allman
|
||||
BreakBeforeTernaryOperators: true
|
||||
ColumnLimit: 100
|
||||
EmptyLineBeforeAccessModifier: Never
|
||||
FixNamespaceComments: false
|
||||
IncludeBlocks: Regroup
|
||||
IncludeCategories:
|
||||
- Regex: "^<[a-z]*>"
|
||||
Priority: 1
|
||||
- Regex: "^<.*/.*>"
|
||||
Priority: 2
|
||||
- Regex: '^<.*\.hpp>'
|
||||
Priority: 3
|
||||
- Regex: '^<.*\.h>'
|
||||
Priority: 4
|
||||
- Regex: ".*"
|
||||
Priority: 5
|
||||
IndentCaseLabels: true
|
||||
IndentPPDirectives: BeforeHash
|
||||
IndentWidth: 4
|
||||
InsertNewlineAtEOF: true
|
||||
NamespaceIndentation: All
|
||||
PointerAlignment: Left
|
||||
ReferenceAlignment: Left
|
||||
SortIncludes: CaseInsensitive
|
||||
SpaceBeforeCaseColon: true
|
||||
SpaceBeforeParens: ControlStatements
|
||||
Reference in New Issue
Block a user