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

Implement clang-static-analyzer lint #14

Open
matt-chan opened this issue Aug 13, 2017 · 1 comment
Open

Implement clang-static-analyzer lint #14

matt-chan opened this issue Aug 13, 2017 · 1 comment

Comments

@matt-chan
Copy link
Member

This is a slow linter, but rather good at catching C/C++ errors:
https://clang-analyzer.llvm.org/

It would be nice to augment cppcheck with this.

@matt-chan matt-chan assigned kimt33 and unassigned kimt33 Aug 14, 2017
@tovrstra
Copy link
Member

This is quite an advanced technique and I guess we cannot treat it as just any other linter. You essentially have to build the code with analyzing compilers, normally using debug settings. This can be done by prefixing any command that would invoke a compiler by scan-build, e.g. scan-build make. This generates a html report but also xml "plist" files can be generated. These can then be post-processed, like we do with the output of other linters. (I'd have to get some experience with the analyzer first to see how this can be done exactly.)

clang is available on travis by default, so we do not need conda packages for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants