Search for ideas for implementing new diagnostic warnings in PVS-Studio

Search for ideas for implementing new diagnostic warnings in PVS-Studio

About 5 years ago, a lot of work was done to collect a variety of error patterns that C and C++ programmers allow. Patterns were written out, framed in a specific format as tasks, accompanied by examples, etc. Diagnostic Todo-list is regularly updated with the wishes of users. But despite this replenishment, the list began to gradually deplete. It's not surprising, as for 5 years we have been very actively making new diagnostics. There are now only the most difficult wishes or not very exciting ones.

And so we realized that the time had come to collect and note ideas again. So colleagues had the task of collecting new ideas from various sources. For example, yesterday I handed Vika the book "Optimizing C++ Programs". Perhaps, ideas for the section of optimization diagnostics will now appear (in PVS-Studio they have the number V801-V8xx).

Now I appeal to subscribers. Please send your ideas of diagnostics. You may have recently encountered a typo in code that was not found by the compiler and other tools. Or you learned about a new version of the error, which is associated with new features that appeared in the C++ language. Example: V1047 - Lifetime of the lambda is greater than lifetime of the local variable captured by reference.

It is best to write about ideas using the feedback form.

Thanks in advance.

要查看或添加评论,请登录

社区洞察

其他会员也浏览了