Using LLVM's New Pass Manager to Write a Simple Function Pass
Learn how to write and register a simple function pass using LLVM's new Pass Manager, with a complete C++ example, usage notes, and common pitfalls.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to write and register a simple function pass using LLVM's new Pass Manager, with a complete C++ example, usage notes, and common pitfalls.
Learn how to eliminate 'Include Hell' in CMake by moving from global directory settings to target-based dependency management using PUBLIC, PRIVATE, and INTERFACE keywords.
A step‑by‑step diagnostic guide for C++ standard container iterator invalidation: recognize the symptoms, map each container’s invalidation rules, run ordered checks with sanitizers and debug modes, apply targeted fixes, and know when to escalate.
Carbon replaces C++ templates with checked generics verified at the definition site against explicit interfaces — enabling separate compilation, cleaner errors, and an explicit static-vs-dynamic dispatch choice.
Learn how to manage Debug, Release, and custom build types in a single CMakeLists.txt for CLion using generator expressions, CMake profiles, and shareable CMake presets — plus cross‑compilation tips and common pitfalls.
Step‑by‑step guide to adopting C++20 modules in a medium‑sized codebase: pick a leaf library, write module interface and implementation files, update consumers to import, configure CMake 3.28+, verify encapsulation and incremental build speedups, and recover with header shims if needed.
Step‑by‑step guide to adding a custom VGUI2 health bar HUD element in Source Engine, including code, registration, compilation, and verification.
Learn how to create, configure, and use multiple RocksDB column families to isolate workloads while sharing a single database instance.
Replace manual iterator loops with C++20 Ranges views and pipe syntax for lazy, readable data transformations.