diff --git a/go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll b/go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll index 0e95d05aaa3..e736460be63 100644 --- a/go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll +++ b/go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll @@ -56,6 +56,10 @@ module GoCfg { or e instanceof Go::ParenExpr or + e instanceof Go::CommentGroup + or + e instanceof Go::Comment + or e = any(Go::ImportSpec is).getPathExpr() or e.getParent*() = any(Go::ArrayTypeExpr ate).getLength()