Here are some tools you should look into:<p>Clang-tidy: <a href="http:&#x2F;&#x2F;clang.llvm.org&#x2F;extra&#x2F;clang-tidy&#x2F;" rel="nofollow">http:&#x2F;&#x2F;clang.llvm.org&#x2F;extra&#x2F;clang-tidy&#x2F;</a><p>Cppcheck: <a href="http:&#x2F;&#x2F;cppcheck.sourceforge.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;cppcheck.sourceforge.net&#x2F;</a><p>Flint++: <a href="https:&#x2F;&#x2F;github.com&#x2F;L2Program&#x2F;FlintPlusPlus" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;L2Program&#x2F;FlintPlusPlus</a><p>Clazy: <a href="http:&#x2F;&#x2F;www.kdab.com&#x2F;use-static-analysis-improve-performance&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.kdab.com&#x2F;use-static-analysis-improve-performance&#x2F;</a>