Skip to content

Commit d0b2a30

Browse files
committed
Update .clangd and .clang-tidy
1 parent 34cf0e6 commit d0b2a30

2 files changed

Lines changed: 37 additions & 7 deletions

File tree

.clang-tidy

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
---
2-
Checks: 'bugprone-*,cppcoreguidelines-*,performance-*,readability-*'
2+
Checks: >
3+
bugprone-*,
4+
cppcoreguidelines-*,
5+
performance-*,
6+
readability-*,$
7+
clang-analyzer-*,
8+
misc-unused-parameters,
9+
10+
-bugprone-easily-swappable-parameters,
11+
-bugprone-reserved-identifier,
12+
-cppcoreguidelines-pro-type-vararg,
13+
-cppcoreguidelines-avoid-non-const-global-variables,
14+
315
WarningsAsErrors: ''
416
HeaderFileExtensions:
517
- ''
@@ -14,8 +26,7 @@ ImplementationFileExtensions:
1426
- cxx
1527
HeaderFilterRegex: ''
1628
AnalyzeTemporaryDtors: false
17-
FormatStyle: none
18-
User: santos
29+
FormatStyle: file
1930
CheckOptions:
2031
cert-dcl16-c.NewSuffixes: 'L;LL;LU;LLU'
2132
google-readability-namespace-comments.ShortNamespaceLines: '10'

.clangd

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
CompileFlags:
2-
Add: [-DNUM_CORES, -DNUM_CORES_PER_TILE, -DNUM_GROUPS, -DSTACK_SIZE,
3-
-D__riscv, -DXQUEUE_SIZE, -DSEQ_MEM_SIZE, -DBANKING_FACTOR, -march=rv32ima]
2+
Add: [
3+
-std=c++17,
4+
-D__riscv,
5+
-DNUM_CORES,
6+
-DNUM_CORES_PER_TILE,
7+
-DNUM_GROUPS,
8+
-DSTACK_SIZE,
9+
-DXQUEUE_SIZE,
10+
-DSEQ_MEM_SIZE,
11+
-DBANKING_FACTOR,
12+
-DETL_CHECK_PUSH_POP,
13+
-DETL_LOG_ERRORS,
14+
-DETL_VERBOSE_ERRORS
15+
]
416

517
---
618

719
If:
8-
PathMatch: [.*/runtime/*/.*]
20+
PathMatch: [.*/runtime/.*/.*]
921
CompileFlags:
10-
Add: [-xc++, -I../]
22+
Add: [-xc++, -I.., -I../../ext/etl/include/]
23+
24+
---
25+
26+
If:
27+
PathMatch: [.*/tests/.*/.*]
28+
CompileFlags:
29+
Add: [-xc++, -I.., -I../../ext/etl/include/, -I../../runtime/]

0 commit comments

Comments
 (0)