Skip to content

Commit

Permalink
[software] Update .clangd and .clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
sant0s12 committed May 26, 2024
1 parent 6a90772 commit 052f0c2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 7 deletions.
17 changes: 14 additions & 3 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
---
Checks: 'bugprone-*,cppcoreguidelines-*,performance-*,readability-*'
Checks: >
bugprone-*,
cppcoreguidelines-*,
performance-*,
readability-*,$
clang-analyzer-*,
misc-unused-parameters,
-bugprone-easily-swappable-parameters,
-bugprone-reserved-identifier,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-avoid-non-const-global-variables,
WarningsAsErrors: ''
HeaderFileExtensions:
- ''
Expand All @@ -14,8 +26,7 @@ ImplementationFileExtensions:
- cxx
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
FormatStyle: none
User: santos
FormatStyle: file
CheckOptions:
cert-dcl16-c.NewSuffixes: 'L;LL;LU;LLU'
google-readability-namespace-comments.ShortNamespaceLines: '10'
Expand Down
27 changes: 23 additions & 4 deletions .clangd
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
CompileFlags:
Add: [-DNUM_CORES, -DNUM_CORES_PER_TILE, -DNUM_GROUPS, -DSTACK_SIZE,
-D__riscv, -DXQUEUE_SIZE, -DSEQ_MEM_SIZE, -DBANKING_FACTOR, -march=rv32ima]
Add: [
-std=c++17,
-D__riscv,
-DNUM_CORES,
-DNUM_CORES_PER_TILE,
-DNUM_GROUPS,
-DSTACK_SIZE,
-DXQUEUE_SIZE,
-DSEQ_MEM_SIZE,
-DBANKING_FACTOR,
-DETL_CHECK_PUSH_POP,
-DETL_LOG_ERRORS,
-DETL_VERBOSE_ERRORS
]

---

If:
PathMatch: [.*/runtime/*/.*]
PathMatch: [.*/runtime/.*/.*]
CompileFlags:
Add: [-xc++, -I../]
Add: [-xc++, -I.., -I../../ext/etl/include/]

---

If:
PathMatch: [.*/tests/.*/.*]
CompileFlags:
Add: [-xc++, -I.., -I../../ext/etl/include/, -I../../runtime/]

0 comments on commit 052f0c2

Please sign in to comment.