meson-plus-plus icon indicating copy to clipboard operation
meson-plus-plus copied to clipboard

Handle blocks that have multiple paths to the same successor

Open dcbaker opened this issue 1 year ago • 0 comments

Especially with continue and break, it's very possible to end up in a situation where there are multiple exits from a block to the same block, as:

foreach a: [b, c, d]
  if meson.has_header(a)
    break
  endif
endforeach

will end up in the tail of the loop block if the break statement is reached or if the foreach loop is exhausted.

dcbaker avatar Nov 13 '24 17:11 dcbaker