You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: add clang-tidy and clang-tidy-fix targets (#242)
* Add clang-tidy and clang-tidy-fix targets
* Make linter target depend on starling-raw.wasm
This is needed to build compile_command.json file that clang-tidy uses.
* fix: clang-analyzer errors
These are various fixes reported by clang-analyzer regarding memory
leaks, unsafe functions and inconsistent use use of new and free.
* fix: clang-analyzer errors in script loader
This changes script loader paths to use owned string instead of raw
pointers to fix potential memory leaks reported by clang. The tradeof is
that now we call c_str in few places, but the impact on performance
should be negligible since we call this only once.
* fix: enable cppcoreguidelines checks and apply auto fixes
This patch enables cppcoreguidelines but disables all the lints that
don't offer auto fixes.
* fix: enable modernize lints and apply auto fixes
This patch enables modernize lints and disable all lints from this group
that are not offering auto fix.
* fix: use js_new for RefCounted types
This fixes linter error, where clang complains about using new/free
instead of new/delete.
* fix: fix performance lint about unnecesairly large enum base
* fix: enable performace checks and appy autofixes
* fix: apply linter readability fixes
* fix: do not use const members
* fix: remove unused declarations
* ci: add CI step for linter
* fix: apply fixes after merging main
* fix: enable no-malloc checks and apply fixes
* fix: allow implicit pointer to bool conversions
* Apply suggestions from code review
Co-authored-by: Till Schneidereit <till@tillschneidereit.net>
* fix: remove clang pragmas
* fix: bounds constant array index
* fix: enable special member functions lint
* fix: enable type const cast check
* fix: enable bugprone checks
* fix: correct indentation
* Apply suggestions from code review
Co-authored-by: Till Schneidereit <till@tillschneidereit.net>
* fix: align declaration arguments with impl
---------
Co-authored-by: Till Schneidereit <till@tillschneidereit.net>
0 commit comments