One other bug that cppcheck does not check for is overflow. If we run this code, it would only print out "Hello World!" once. Why does this happen? It's because when you add 1 to the max value of a 32 bit integer it overflows. The integer y would become -2,147,483,648 after...
Finally, Clang Tidy is given its own make target to simplify its use. Here we tell the run-clang-tidy-4.0.py script which clang tidy binary to use, as well as which checks to perform, and what header files to include, which is all of them. We turn off the -cert-err58-cpp test ...
cppcheck is an open-source static analysis tool. This project uses this tool for performing static code analysis. Users can use the following command to run cppcheck locally to generate the report for all files. $ cd rocBLAS-internal $ cppcheck --enable=all --inconclusive --library=googletes...
cppcheck is an open-source static analysis tool. This project uses this tool for performing static code analysis. Users can use the following command to run cppcheck locally to generate the report for all files. $ cd rocBLAS-internal $ cppcheck --enable=all --inconclusive --library=googletes...