Address labeled CFG review feedback · github/codeql@e7691be · GitHub
Skip to content

Commit e7691be

Browse files
owen-mcCopilot
andcommitted
Address labeled CFG review feedback
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fc044f4 commit e7691be

3 files changed

Lines changed: 18 additions & 49 deletions

File tree

‎go/ql/lib/semmle/go/controlflow/ControlFlowGraphImpl.qll‎

Lines changed: 3 additions & 19 deletions

‎go/ql/test/library-tests/semmle/go/controlflow/GotoTarget/gotos.go‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ self:
3535
goto self // $ gotoTarget=self
3636
}
3737

38+
func gotoDirectTarget() {
39+
step1:
40+
goto step2 // $ gotoTarget=step2
41+
step2:
42+
goto step1 // $ gotoTarget=step1
43+
}
44+
3845
func gotoEnclosingStackedLabel(flag bool) {
3946
outer:
4047
inner:

‎shared/controlflow/codeql/controlflow/ControlFlowGraph.qll‎

Lines changed: 8 additions & 30 deletions

0 commit comments

Comments
 (0)