Tag

static analysis

Browsing

We encounter many warnings and errors (“warning” and “error”) in the codes we write. The compilers we use to reveal these warnings and errors for us during compilation, and accordingly, we make these adjustments where they need to be corrected. While many compilers do this internally, there are cases where it needs to be done externally. This process is called static analysis. There are also many tools available to perform static analysis. In this article, I will try to give information about how we can do static analysis with the CppCheck tool. Static Analysis Static analysis allows us to detect errors that can be detected without compiling (i.e. pre-compile) the code and allow us to fix them. In this way,…