Skip to content

Commit 777db0e

Browse files
Merge pull request #43 from NETWAYS/update/tooling
Update/tooling
2 parents 1c66def + 8af5e4a commit 777db0e

File tree

7 files changed

+529
-636
lines changed

7 files changed

+529
-636
lines changed

.clang-format

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
UseTab: true
2-
TabWidth: 4
1+
BasedOnStyle: LLVM
2+
UseTab: ForContinuationAndIndentation
33
IndentWidth: 4
4+
TabWidth: 4
5+
AllowShortIfStatementsOnASingleLine: false
6+
BreakBeforeBraces: Attach
7+
AlignConsecutiveMacros: true
8+
ColumnLimit: 140
9+
IndentPPDirectives: AfterHash
10+
SortIncludes: Never
11+
InsertBraces: true
12+
AllowShortEnumsOnASingleLine: false

.clangd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CompileFlags:
2+
# Treat code as C++, use C++17 standard, enable more warnings.
3+
Add: [-xc, -std=c17, -Wall, -Wextra, -Wno-missing-prototypes, -Wpedantic]
4+
Diagnostics:
5+
# Tweak Clang-Tidy checks.
6+
ClangTidy:
7+
Add: [performance*, modernize*, readability*]
8+
CheckOptions:
9+
readability-function-cognitive-complexity.DescribeBasicIncrements: false
10+
readability-function-cognitive-complexity.Threshold: 50

0 commit comments

Comments
 (0)