Skip to content

Commit

Permalink
Merge pull request #43 from NETWAYS/update/tooling
Browse files Browse the repository at this point in the history
Update/tooling
  • Loading branch information
RincewindsHat authored Oct 28, 2024
2 parents 1c66def + 8af5e4a commit 777db0e
Show file tree
Hide file tree
Showing 7 changed files with 529 additions and 636 deletions.
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

0 comments on commit 777db0e

Please sign in to comment.