We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 22074af + 57e985c commit ddfb168Copy full SHA for ddfb168
cpp/ql/lib/semmle/code/cpp/dataflow/ExternalFlow.qll
@@ -869,12 +869,11 @@ private predicate elementSpecMatchesSignature(
869
bindingset[nameWithoutArgs]
870
pragma[inline_late]
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
- )
+ result = method.getDeclaringType() and
+ nameWithoutArgs = "operator " + method.(ConversionOperator).getDestType()
+ or
+ result = method.getClassAndName(nameWithoutArgs) and
+ not method instanceof ConversionOperator
878
}
879
880
/**
0 commit comments