Hello Friends, Welcome back to my channel. If you have seen my previous videos we have gone through how to make use of SonarQube for static code analysis and Vulnerability management. In this tutorial, I am going to introduce to you another tool called PVS studio. Lets talk about Static code analysis little bit before we get in to the tool. Static code analysis is the process of detecting errors and flaws in the source code of programs. Static analysis can be considered as a process of automated code review.The main advantage of static code analysis is the opportunity to greatly reduce the cost of eliminating defects in a program. The earlier an error is detected, the less expensive it is to correct it.
C++ code is fraught with perils and pitfalls. That's why a thorough and meticulous code review is very important. The purpose of this talk is to (hopefully) improve your ability to take on such a task. We'll take a look at some error patterns easily overlooked. In all honesty, many people just don't know about them. Meet a dangerous emplace_back, an unexpected integer overflow, a skipped memset, perils of noexcept functions, and so on.
In this UE4 tutorial, we will look over the general process of static analysis of C++ code and then get specific in how this is done using PVS-Studio.
We all know that no one writes perfect code. There's always a chance that there will appear bugs, even in big projects such as Unreal Engine. And that's the reason why even in UE4 static analysis in very important. We can safely say that having any kind of static analyser is a must if you're planning to make a serious project.
Author: The Cherno
In this video, you'll find out more about one of the ways how to improve your C++ code which by applying static analysis tools. Despite the fact that every programmer strives to write flawless code and compute everything on the fly, it's hard even for an experienced professional. Here's where a static analyzer comes in handy.
Not only does it complement compiler's work, it also gives reasons for the occurrence of some errors in code.
It is recommended checking out various tools, PVS-Studio is one of the finest examples. In this case, PVS-Studio is used as a Visual Studio extension. The author writes a code fragment with an unobvious flaw in the nested for statement, which triggers warnings. This case is followed by other examples of errors detection. We can safely say that the benefit from using static analysis can be seen immediately.
A podcast recording from April, 23 2020, organized by cpp.chat.
The podcast was dedicated to static code analysis. The discussed topics included:
We bring to your attention the presentation of “PVS-Studio in 2019”. The fact is that from time to time our users ask if there is any material that overviews the analyzer's capabilities, describes what it is, and so on. For this reason, we decided to record this presentation, in which I will tell you what PVS-Studio is, what features it has, and so on, so that you can learn about it in general. There will be many different links in this presentation. To follow them you can download the presentation as a PDF file look through it more carefully and follow the links given in it.