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
#if defined(FOO) // warning: use #ifdef insteadint x;
#elif defined(BAR) // but it becomes inconsistent with this oneint y;
#elseint z;
#endif
Here we use if defined because we don't have elifdef until C++23, so we want to keep consistency. However the check warns about it.
Not sure how difficult it would be to implement or if it's worth at all, but would be nice if the check was smart enough to understand this use case (possibly under an option). Otherwise if we think it's too niche of a use case I can just close this and NOLINT it :)