Skip to content

Commit acdda04

Browse files
committed
Add clangd configuration file
1 parent e81114d commit acdda04

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.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)