Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15b56d9

Browse files
pavgustjbj
authored andcommitted
No implicit instances for constructor call
1 parent 04454ef commit 15b56d9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowUtil.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ private newtype TInstanceAccess =
1414
TImplicitThisForCall(FunctionCall fc) {
1515
fc.getTarget() instanceof MemberFunction and
1616
not exists(fc.getQualifier()) and
17-
not fc.getTarget().isStatic()
17+
not fc.getTarget().isStatic() and
18+
not fc.getTarget() instanceof Constructor
1819
}
1920

2021
private class InstanceAccess extends TInstanceAccess {

0 commit comments

Comments
 (0)