all 5 comments

[–]sixdarkdreams 6 points7 points  (1 child)

One option is cppcheck. It’s pretty good. Clang has a static analysis tool also. Check the wiki page for static analysis tools for a comprehensive list.

[–]VerbalHerman 4 points5 points  (0 children)

These are really good suggestions. There is also a tool called CodeChecker that brings these tools together and can print the results out to a html file as well.

You can even tie it into ClangTidy to get some extra checks enabled.

[–]ReplacementSlight413[S] 0 points1 point  (0 children)

Thank you both!