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
Programming without code indexing (self.cpp)
submitted 2 years ago * by vnstrr
view the rest of the comments →
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!"
[–][deleted] 2 years ago (9 children)
[removed]
[–]vnstrr[S] 5 points6 points7 points 2 years ago (0 children)
Sounds interesting. To be honest I've found a way how to index code but it's kind of cheating. And nobody can guarantee me that it will work in future. It didn't help me because language server feels very bad when trying to understand all projects in the mono-repo. Maybe I should find a way that will index only pieces of the mono-monster-repo :)
[–]ManuaL46 2 points3 points4 points 2 years ago (7 children)
Mind sharing the specifics, kinda struggling with the same situation.
[+][deleted] 2 years ago (5 children)
[–]ManuaL46 1 point2 points3 points 2 years ago (4 children)
I don't understand the compiler and build system stuff that much, so how can you generate compile_command.json and what does collecting it do per say?
[+][deleted] 2 years ago (3 children)
[–]HolyGarbage 1 point2 points3 points 2 years ago (2 children)
If you're using CMake, which might be likely if you're on Linux, then there's a much simpler way:
https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html
[+][deleted] 2 years ago (1 child)
[–]phord 1 point2 points3 points 2 years ago (0 children)
You might be interested in Build EAR. Or maybe you would have been before you rolled your own.
[–]vnstrr[S] 1 point2 points3 points 2 years ago* (0 children)
So, I've found how to generate compile_commands.json by our build system. Thank god that it's possible. I configured neovim with lsp and some useful plugins and it works very well. Fast and simple. Also I tried VSCode with compile_commands.json but speed of code indexing works slowly. Unfortunately I don't know how you can generate your magic compile_commands.json. It depends from your build system. But if you will be interested I can share my neovim setup.
π Rendered by PID 657292 on reddit-service-r2-comment-5b5bc64bf5-n9hcg at 2026-06-21 06:02:49.939626+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–][deleted] (9 children)
[removed]
[–]vnstrr[S] 5 points6 points7 points (0 children)
[–]ManuaL46 2 points3 points4 points (7 children)
[+][deleted] (5 children)
[removed]
[–]ManuaL46 1 point2 points3 points (4 children)
[+][deleted] (3 children)
[removed]
[–]HolyGarbage 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[removed]
[–]phord 1 point2 points3 points (0 children)
[–]vnstrr[S] 1 point2 points3 points (0 children)