Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
UseTab: true
TabWidth: 4
BasedOnStyle: LLVM
UseTab: ForContinuationAndIndentation
IndentWidth: 4
TabWidth: 4
AllowShortIfStatementsOnASingleLine: false
BreakBeforeBraces: Attach
AlignConsecutiveMacros: true
ColumnLimit: 140
IndentPPDirectives: AfterHash
SortIncludes: Never
InsertBraces: true
AllowShortEnumsOnASingleLine: false
10 changes: 10 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CompileFlags:
# Treat code as C++, use C++17 standard, enable more warnings.
Add: [-xc, -std=c17, -Wall, -Wextra, -Wno-missing-prototypes, -Wpedantic]
Diagnostics:
# Tweak Clang-Tidy checks.
ClangTidy:
Add: [performance*, modernize*, readability*]
CheckOptions:
readability-function-cognitive-complexity.DescribeBasicIncrements: false
readability-function-cognitive-complexity.Threshold: 50
Loading