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(
869
869
bindingset [ nameWithoutArgs]
870
870
pragma [ inline_late]
871
871
private 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
878
877
}
879
878
880
879
/**
You can’t perform that action at this time.
0 commit comments