⬆️ ⬇️

Screencast: static analysis of C ++ code

ADD 2011. Screencast: static analysis of C ++ code

At the ADD 2011 conference I gave a talk on Static Analysis of C ++ Code. Thanks to the efforts of Stas Fomin, belonesox has a wonderful screencast (video + presentation), which I bring to your attention.



The report shows many examples of interesting errors I found in open source projects. I'll tell you how you can find many similar errors at the stage of writing code using the static analysis methodology.



Yes, I mention PVS-Studio in the report. But the report is not at all devoted to this tool, but to how to use static analysis in practice and get profit from it.



So, the actual report (duration 42 minutes):

')





Key points:

  1. We all make mistakes when writing code.
  2. The sooner the error is detected, the cheaper and easier it is to fix it.
  3. Static analysis allows you to detect errors at an early stage.
  4. Static analysis tools bring maximum benefit when used regularly. If we postpone the analysis "for later", then a huge number of errors are not corrected immediately, but slowly and sadly in the process of debugging and testing.


Additional Information:

Source: https://habr.com/ru/post/118972/



All Articles