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
{{ message }}
Repository navigation
#elif condition is evaluated after a previous group was taken #709
When an #if or #elif group has already been taken, simplecpp still evaluates the
conditions of later #elif directives. If one of those conditions is invalid, simplecpp
reports an error and throws away all output.
The standard says only the first group whose condition is true is processed. Later groups
are skipped, and their directives are handled as if they were in a skipped group, so their
conditions are not evaluated (C11 §6.10.1p6, C++ [cpp.cond]).
Activity
Fix cppcheck-opensource#709 Do not evaluate #elif after a taken group (…