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
The check doesn't handle condition variables or c++17 if init statements resulting in malformed code.
if (bool X = Cond)
Result = true;
else
Result = false;
// Transformed to Result = X;if (bool X = Cond)
returntrue;
returnfalse;
// Transformed to return X;if (RAII Object; Cond)
Result = true;
else
Result = false;
// Transformed to Result = Cond; -> Removing the RAII object instanceif (bool X = Cond; X)
Result = true;
else
Result = false;
// Transformed to Result = X;if (bool X = Cond; X)
returntrue;
returnfalse;
// Transformed to return X;