File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
cpp/ql/lib/semmle/code/cpp/dataflow Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -869,12 +869,11 @@ private predicate elementSpecMatchesSignature(
869869bindingset [ nameWithoutArgs]
870870pragma [ inline_late]
871871private Class getClassAndNameImpl ( Function method , string nameWithoutArgs ) {
872- exists ( string memberName | result = method .getClassAndName ( memberName ) |
873- nameWithoutArgs = "operator " + method .( ConversionOperator ) .getDestType ( )
874- or
875- not method instanceof ConversionOperator and
876- memberName = nameWithoutArgs
877- )
872+ result = method .getDeclaringType ( ) and
873+ nameWithoutArgs = "operator " + method .( ConversionOperator ) .getDestType ( )
874+ or
875+ result = method .getClassAndName ( nameWithoutArgs ) and
876+ not method instanceof ConversionOperator
878877}
879878
880879/**
You can’t perform that action at this time.
0 commit comments