Skip to content

use scan-build for testing #781

@ZeroChaos-

Description

@ZeroChaos-

I don't know the "right" way to do this, but some kind folks in the #gentoo-dev-help channel on libera irc helped me discover scan-build

Min test case for use

scan-build cmake ..
scan-build make -j$(nproc)

This will build the code while using a static code analysis tool to report errors. It seems to successfully find bugs like the ones found at runtime with #780

It also makes a cool html report at the end. I don't know how to do github actions well, but this would be an excellent way to add some automated testing. This might be a good start to work on that https://github.com/marketplace/actions/run-cmake

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions