Skip to content

Commit

Permalink
feat: Adding clang-tidy static analyzer and fixing related issues
Browse files Browse the repository at this point in the history
added the clang-tidy static analyzer option and worked on resolving all detected issues as best I could.
Also switched to some new safe_ functions implemented in opensea-common where necessary to add bounds checking.

Signed-off-by: Tyler Erickson <[email protected]>
  • Loading branch information
vonericsen committed Nov 11, 2024
1 parent 2805734 commit bd4f05b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
Checks: '-*,modernize-*,cert-*,bugprone-*,-bugprone-easily-swappable-parameters'
Checks: '-*,modernize-*,cert-*,bugprone-*,-bugprone-easily-swappable-parameters,clang-analyzer-*,-clang-analyzer-deadcode.DeadStores'
#other available checks: clang-analyzer-*, performance-*, readability-*, misc-*
#Disabled checks:
# -bugprone-easily-swappable-parameters - warns a LOT. Sometimes on functions meant to look like standardized C11 annex k functions
# While a overall useful thing to consider, it's too noisy right now and it may make the API
# harder to use to resolve all of these.
# -clang-analyzer-deadcode.DeadStores - A lot of warnings related to this. Will be good to cleanup, but due to how many
# there currently are, it's better to concentrate on other more pressing problems
WarningsAsErrors: ''
HeaderFilterRegex: '.*'
AnalyzeTemporaryDtors: false
Expand Down
2 changes: 1 addition & 1 deletion subprojects/opensea-operations
2 changes: 1 addition & 1 deletion subprojects/opensea-transport

0 comments on commit bd4f05b

Please sign in to comment.