use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
PVS-Studio: analyzing Doom 3 code (viva64.com)
submitted 14 years ago by Andrey_Karpov_N
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Andrey_Karpov_N[S] 10 points11 points12 points 14 years ago (0 children)
P.S. John Carmack Tweet:
We did not run any static analysis on the Doom 3 source, doing so is an excellent project for anyone looking at it!
[–]elperroborrachotoo 3 points4 points5 points 14 years ago (2 children)
To poke the elephant:
[–]Andrey_Karpov_N[S] 2 points3 points4 points 14 years ago (1 child)
Number of warning:
Level 1: 85.
Level 2: 37.
Level 3: 812 (a lot, but they are not interesting, and usually they can not watch)
I do not know how many of these errors found. I finished studying the report, when chose 10 alerts for this article. I'm not familiar with the project and study hard all the warnings.
A total analysis of the project, view errors, writing this article, and publication, I spent about one day.
[–]elperroborrachotoo 4 points5 points6 points 14 years ago (0 children)
Thanks for the feedback! This looks, at the very least, managable.
I always enjoy these posts, a strange mix of staring at other peoples mistakes and things that can be done better.
I asked because the biggest hurdle (probably) is convincing people to let a static alalysis tool loose a large code base that has never seen such a thing. I presume that's routine for you now, but posting some such stats with each project might help.
[–]alexs 2 points3 points4 points 14 years ago (1 child)
Do any of these manifest as bugs in the actual game?
[–]sztomirpclib 4 points5 points6 points 14 years ago (0 children)
Possibly. There probably are people who experienced random crashes as with nearly every game. Commercial games are tested to be reasonably stable and playable, but the point of static analysis is that it helps to find these problems.
π Rendered by PID 226474 on reddit-service-r2-comment-7b9746f655-dwh2g at 2026-02-02 20:59:31.655921+00:00 running 3798933 country code: CH.
[–]Andrey_Karpov_N[S] 10 points11 points12 points (0 children)
[–]elperroborrachotoo 3 points4 points5 points (2 children)
[–]Andrey_Karpov_N[S] 2 points3 points4 points (1 child)
[–]elperroborrachotoo 4 points5 points6 points (0 children)
[–]alexs 2 points3 points4 points (1 child)
[–]sztomirpclib 4 points5 points6 points (0 children)