aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-04-09 09:14:01 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-05-21 17:27:45 +0200
commit177f5fe2255e2fd16040c802a7298ec21a29bd80 (patch)
treee4689872972c4217c2caad41c557bdc2a2474f29 /validation/linear
parenteff5e6c1a4e6c36614dcfaa0213e2ccf57e844a3 (diff)
downloadsparse-dev-177f5fe2255e2fd16040c802a7298ec21a29bd80.tar.gz
scope: give a scope for labels & gotos
One way of detecting gotos inside an statement expression is to use a new kind of scope for the gotos & labels. Since gotos don't need to have their label predeclared, nothing can be checked at parsing time but later it can be checked that a goto doesn't jump inside one of the label scope created by statement expressions. So, add additional scope information to gotos and labels to allow such check to be done. Note: the label's symbols are still created in the function scope since they belong to a single namespace. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/linear')
0 files changed, 0 insertions, 0 deletions