cppinsights

C++ code insights tool that shows how the compiler transforms your code

brewmacoslinux
Try with needOr install directly
Source

About

See your source code with the eyes of a compiler

Commands

insights

Examples

Analyze a C++ file and see compiler transformations$ insights mycode.cpp
View how range-based for loops are transformed$ insights -std=c++17 ranges.cpp
Analyze lambda expressions and their compiler-generated code$ insights lambda_example.cpp -std=c++14