Replies: 2 comments 4 replies
|
Can I ask what you want to use it for? The two examples you give are very much about syntactic blocks. Both of those languages have a func f() {
g()
h()
}At a syntactic level it clearly has one block. But from the point of the view of control flow it has two basic blocks, because |
|
#21254 has been merged, so this should be in release v2.24.2, which should be out in about two weeks. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
codeql/go/ql/lib/semmle/go/AST.qll
Lines 77 to 85 in 6fa6093
In rust and cpp,
getEnclosingBlockis supported as shown by search result. Would Go support this?All reactions