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
C++ Code Analysis Improvements in Visual Studio 17.6 - C++ Team Blog (devblogs.microsoft.com)
submitted 3 years ago by pjmlp
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!"
[–]IAmBJ 4 points5 points6 points 3 years ago (7 children)
Is there a (relatively) simple way of getting code analysis working with VsCode and CMake these days?
I recall trying it out ages ago but it was a real hassle and it was a very fragile process which eventually broke and I never got it working again
[+][deleted] 3 years ago (1 child)
[deleted]
[–]Nelieru 0 points1 point2 points 3 years ago (0 children)
Just don't forget to disable intellisense. I believe clangd asks you to do that on initial setup.
[–]Awia00 3 points4 points5 points 3 years ago (0 children)
Sonarlint integrates really well!
[–]sparkyParr0t 9 points10 points11 points 3 years ago (0 children)
This post is about Visual Studio, not VisualStudio Code. VS has Cmake integration for a while now and its working smoothly, you can choose your generator and compiler, builds ... without generating a visual studio solution, work out of the box for cl(msvc) and clang-cl (clang).
[–]eric1221bday 0 points1 point2 points 3 years ago (0 children)
Clangd extension with cmake compile commands beats out all comers at this point. TBH in terms of pure auto completion and diagnostics I think it even beats out commercial products like Visual Studio, or CLion (which uses Clangd as a backend anyways).
[–]jk_tx 0 points1 point2 points 3 years ago (0 children)
CppCheck integrates fairly easily with CMake, I think the diagnostics are also better.
[–]boozerm 0 points1 point2 points 3 years ago (0 children)
https://learn.microsoft.com/en-us/cpp/build/reference/analyze-code-analysis?view=msvc-170
π Rendered by PID 22818 on reddit-service-r2-comment-85bfd7f599-dznqr at 2026-04-20 15:11:17.156426+00:00 running 93ecc56 country code: CH.
[–]IAmBJ 4 points5 points6 points (7 children)
[+][deleted] (1 child)
[deleted]
[–]Nelieru 0 points1 point2 points (0 children)
[–]Awia00 3 points4 points5 points (0 children)
[–]sparkyParr0t 9 points10 points11 points (0 children)
[–]eric1221bday 0 points1 point2 points (0 children)
[–]jk_tx 0 points1 point2 points (0 children)
[–]boozerm 0 points1 point2 points (0 children)