Unicorn with delicious cookie
Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
Posts: #Cpp

Posts: # Cpp

Jun 07 2024
C++ programmer's guide to undefined behavior: part 1 of 11
Andrey Karpov, Dmitry Sviridkin
Your attention is invited to the first part of an e-book on undefined behavior. This is not a textbook, as it's intended for those who are already familiar with C++ programming. It's a kind of...
...
May 30 2024
Error on verge of extinction, or why I put if (x = 42) in Red List of C & C++ bugs
Andrey Karpov
If we ask a programmer what bugs are the most common in C and C++ code, they'll name a null pointer dereference, undefined behavior, array overrun, and other typical error patterns. They may name...
...
Subscribe to the newsletter
Want to receive a monthly digest of the most interesting articles and news? Subscribe!
* By clicking this button you agree to our Privacy Policy statement
May 29 2024
What errors are lurking in LLVM code?
Alexey Smolskas
LLVM is an open-source project with a pretty large code base. The acme in terms of code quality, considering its size and open-source nature. After all, it's the developers of compiler tools who...
...
May 23 2024
C++: freeing resources in destructors using helper functions
Andrey Karpov
In this article, we'll look at how to correctly destroy objects in the OOP-based C++ program without redundant operations. This is the final article in the series about the bugs in...
...
May 16 2024
Let's check the qdEngine game engine, part three: 10 more bugs
Andrey Karpov
In the first article about qdEngine, we've discussed 10 errors selected by the PVS-Studio plugin. However, we have 10 more bugs that are worth mentioning. As they say, it's better to learn from...
...
May 14 2024
Eleven moments of ReactOS: user mode gets better?
Taras Shevchenko
ReactOS is a project where the victory over regression and the delivery of a new feature (or its working prototype) are loudly celebrated. Even the FOSS community has to take a break from...
...
May 07 2024
Let's check the qdEngine game engine, part two: simplifying C++ code
Andrey Karpov
In this article, we'll discuss how the PVS-Studio static analyzer encourages developers to refactor their code. After all, the shorter, simpler, and clearer the code is, the fewer errors it...
...
Apr 27 2024
Let's check the qdEngine game engine, part one: top 10 warnings issued by PVS-Studio
Andrey Karpov
The bugs found in the qdEngine game engine are quite diverse, so I don't want to put them all in one publication. Our readers may miss out on interesting topics on writing high-quality code...
...
Apr 16 2024
Static analyzer nudges you to write clean code
Andrey Karpov
Static analyzers help not only detect errors and security flaws but also make code cleaner. Analyzers find redundant checks, duplicate actions, and other anomalies — they give the opportunity to...
...
Apr 05 2024
How not to check array size in C++
Mikhail Gelvikh
How often do you see the sizeof(array)/sizeof(array[0]) statement used to get the size of an array? I really hope it's not too often, because it's 2024 already. In this note, we'll talk about...
...
View more Pagination arrow previous
Showing: 51-60 of 605
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I want to join the test
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you do not see the email in your inbox, please check if it is filtered to one of the following folders:

  • Promotion
  • Updates
  • Spam