Cases when a static code analyzer may help you
Author: Andrey Karpov
Of course, it has been known for a long time that using Copy-Paste in programming is a bad thing. But let's try to investigate this problem closely instead of limiting ourselves to just saying "do not copy the code".
This is the third article where I will tell you about a couple of new programming methods that can help you make your code simpler and safer. This time we will take samples from the Qt project.
There are actually 91 errors described in the article, but number 90 looks nicer in the title. The article is intended for C/C++ programmers, but developers working with other languages may also find it interesting.
For more complete information about compiler optimizations, see our Optimization Notice.