Skip to content

Conversation

@embray
Copy link
Collaborator

@embray embray commented Dec 30, 2025

I haven't run clang-tidy in a long time and it caught a bunch of little things we can stand to take a little more care with.

I'm still having a problem with it not suppressing warnings that bubble up from STC. Newer versions of clang-tidy have an option to ignore specific headers but my local version doesn't have this setting yet.

- allow variables p and q in loops
- allow i_keyclass macro for setting up STC types; more to follow
- I'm not fully convinced this is that much clearer as there is now
  some state that is maintained between different function calls, but
  having separate subroutines for individual steps is I think easier
  to manage
…o follow

style: more minor tidying of style warnings
fix: a couple minor potential memory leaks also caught by tidy
clang-analyzer doesn't understand that hmap_push() is taking ownership
of the allocated key
@embray embray merged commit 9f53c04 into main Dec 30, 2025
12 checks passed
@embray embray deleted the tidy branch December 30, 2025 16:50
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.

2 participants