Post #3853244
2026-07-16 04:02 UTC
@pjf@cloudisland.nz clang-tidy or clang-check is probably what you are after.
It also helps if you've got a build system that generates a compile_commands.json file: without this, it won't know how to how to preprocess the file and you'll likely have broken include directives.
If you're using meson, it'll generate this for you automatically. If you're using CMake, you can turn it on via CMAKE_EXPORT_COMPILE_COMMANDS.
Replies (1)
-
@pjf@cloudisland.nz 2026-07-16 07:31
@jamesh@aus.social @xan@xantronix.social : Thank you both! clang-check already found a potential memory leak!