You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the database we still see C++ metrics calculated for lambdas despite --cppmetrics-ignore-lambdas flag is used.
Example snippet:
#include<iostream>
#include<functional>voidfoo(std::function<void()> f) {
f();
}
intmain()
{
foo([&] () { // <---- Type 2 and 4 metric still calculated for this line
std::cout << "hello world!\n";
});
}
Type 2: MCCABE_FUNCTION
Type 4: BUMPY_ROAD
Goal: add an option to NOT calculate metrics for anonymous classes or compiler generated types.
Activity
dtee1 commentedon Jan 30, 2026
Interested
barnabasdomozi commentedon Feb 5, 2026
Fixed by #816