-
Notifications
You must be signed in to change notification settings - Fork 50
ci: add clang-tidy and clang-tidy-fix targets #242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 17 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
b1ef740
Add clang-tidy and clang-tidy-fix targets
andreiltd dd5ff1d
Merge branch 'main' into clang-tidy
andreiltd bb3fa2e
Merge branch 'main' into clang-tidy
andreiltd 601b01c
Make linter target depend on starling-raw.wasm
andreiltd a49cfeb
fix: clang-analyzer errors
andreiltd 518911b
fix: clang-analyzer errors in script loader
andreiltd 5ab268c
fix: enable cppcoreguidelines checks and apply auto fixes
andreiltd 7084086
fix: enable modernize lints and apply auto fixes
andreiltd 567cd73
fix: use js_new for RefCounted types
andreiltd 9f6b97d
fix: fix performance lint about unnecesairly large enum base
andreiltd 37fddbc
fix: enable performace checks and appy autofixes
andreiltd 4bfbb7d
fix: apply linter readability fixes
andreiltd 98c9281
fix: do not use const members
andreiltd c589688
fix: remove unused declarations
andreiltd 65f3344
ci: add CI step for linter
andreiltd 2d9f230
Merge branch 'main' into clang-tidy
andreiltd 8d0ca13
fix: apply fixes after merging main
andreiltd cbd70da
fix: enable no-malloc checks and apply fixes
andreiltd 457b6c2
fix: allow implicit pointer to bool conversions
andreiltd 3a572f6
Apply suggestions from code review
andreiltd 7bf4316
fix: remove clang pragmas
andreiltd 3860451
fix: bounds constant array index
andreiltd f9b099a
fix: enable special member functions lint
andreiltd aa664cb
fix: enable type const cast check
andreiltd c246ba4
fix: enable bugprone checks
andreiltd 30f2b5d
fix: correct indentation
andreiltd 1e9e30a
Apply suggestions from code review
andreiltd 98ba4d1
fix: align declaration arguments with impl
andreiltd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| Checks: > | ||
| clang-analyzer-*, | ||
| clang-diagnostic-*, | ||
| cppcoreguidelines-*, | ||
| modernize-*, | ||
| performance-*, | ||
| readability-*, | ||
| misc-redundant-expression, | ||
| misc-uniqueptr-reset-release, | ||
| misc-unused-alias-decls, | ||
| misc-unused-using-decls, | ||
| -clang-analyzer-optin.core.EnumCastOutOfRange, | ||
| -cppcoreguidelines-avoid-do-while, | ||
| -cppcoreguidelines-avoid-c-arrays, | ||
| -cppcoreguidelines-pro-type-reinterpret-cast, | ||
| -cppcoreguidelines-avoid-magic-numbers, | ||
| -cppcoreguidelines-pro-bounds-array-to-pointer-decay, | ||
| -cppcoreguidelines-pro-type-const-cast, | ||
| -cppcoreguidelines-no-malloc, | ||
| -cppcoreguidelines-owning-memory, | ||
| -cppcoreguidelines-avoid-non-const-global-variables, | ||
| -cppcoreguidelines-pro-type-vararg, | ||
| -cppcoreguidelines-narrowing-conversions, | ||
| -cppcoreguidelines-pro-bounds-pointer-arithmetic, | ||
| -cppcoreguidelines-pro-type-cstyle-cast, | ||
| -cppcoreguidelines-special-member-functions, | ||
| -cppcoreguidelines-init-variables, | ||
| -cppcoreguidelines-macro-usage, | ||
| -cppcoreguidelines-interfaces-global-init, | ||
| -cppcoreguidelines-use-default-member-init, | ||
| -cppcoreguidelines-pro-bounds-constant-array-index, | ||
| -cppcoreguidelines-pro-type-static-cast-downcast, | ||
| -modernize-use-trailing-return-type, | ||
| -modernize-avoid-c-arrays, | ||
| -modernize-use-ranges, | ||
| -readability-identifier-length, | ||
| -readability-static-accessed-through-instance, | ||
| -readability-function-cognitive-complexity, | ||
| -readability-magic-numbers, | ||
| -readability-simplify-boolean-expr, | ||
|
|
||
| # Treat all warnings as errors | ||
| WarningsAsErrors: '*' | ||
|
|
||
| # Only warn on headers in the code tree | ||
| HeaderFilterRegex: 'builtins/|runtime/' | ||
|
|
||
| # Use the same style as clang-format (look for .clang-format) | ||
| FormatStyle: file | ||
|
|
||
| # Explicitly exclude system/dependency headers | ||
| SystemHeaders: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.