Skip to content
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

Apply clang-tidy code improvements #56

Merged
merged 86 commits into from
Aug 20, 2024
Merged

Apply clang-tidy code improvements #56

merged 86 commits into from
Aug 20, 2024

Conversation

smarr
Copy link
Member

@smarr smarr commented Aug 20, 2024

This PR is a long list of changes suggested by clang-tidy, or inspired by some of the feedback.

While this represents a lot of churn, it also allows us to enable many clang-tidy checks, and hopefully keep a more consistent style now.

Performance, I believe is unaffected: https://rebench.dev/SOMpp/compare/dc3c3acd1c15f1f4f9dfb41e3ed09d5b5c0a4cdf..b4f880fd6e096dfed57b1daa2b6dcf42f85824a0

smarr added 30 commits August 15, 2024 23:42
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
We don’t manage the const-ness here, and the object can change elsewhere so this just doesn’t make sense.
And since lookups do caching, they aren’t really const methods.

Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
smarr added 28 commits August 19, 2024 20:15
Signed-off-by: Stefan Marr <[email protected]>
Otherwise, disable the lint explicitly

Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
This also makes the vectors of the generational heap part of the heap object.

Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
@smarr smarr merged commit 6486ada into SOM-st:master Aug 20, 2024
19 checks passed
@smarr smarr deleted the lint branch August 20, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant