We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1f9ccd commit 4d90354Copy full SHA for 4d90354
1 file changed
go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll
@@ -52,7 +52,13 @@ module GoCfg {
52
or
53
e instanceof Go::SelectorExpr and not e instanceof Go::ReferenceExpr
54
55
- e instanceof Go::ReferenceExpr and not e.(Go::ReferenceExpr).isRvalue()
+ e instanceof Go::ReferenceExpr and
56
+ not e.(Go::ReferenceExpr).isRvalue() and
57
+ not e instanceof Go::SelectorExpr and
58
+ not e = any(Go::SelectorExpr sel).getBase() and
59
+ not e instanceof Go::IndexExpr and
60
+ not e = any(Go::IndexExpr idx).getBase() and
61
+ not e = any(Go::IndexExpr idx).getIndex()
62
63
e instanceof Go::ParenExpr
64
0 commit comments