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

Skip to content

Commit 3c0af49

Browse files
committed
C++: Fix bug introduced in an earlier commit and accept test changes. They all look good.
1 parent 0242874 commit 3c0af49

2 files changed

Lines changed: 2 additions & 195 deletions

File tree

cpp/ql/lib/semmle/code/cpp/dataflow/ExternalFlow.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,13 +437,13 @@ private predicate elementSpec(
437437
private predicate isClassConstructedFrom(Class c, Class templateClass) {
438438
c.isConstructedFrom(templateClass)
439439
or
440-
not any(Class c_).isConstructedFrom(templateClass) and c = templateClass
440+
not c.isConstructedFrom(_) and c = templateClass
441441
}
442442

443443
private predicate isFunctionConstructedFrom(Function f, Function templateFunc) {
444444
f.isConstructedFrom(templateFunc)
445445
or
446-
not any(Function f_).isConstructedFrom(templateFunc) and f = templateFunc
446+
not f.isConstructedFrom(_) and f = templateFunc
447447
}
448448

449449
/** Gets the fully templated version of `f`. */

0 commit comments

Comments
 (0)