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

Skip to content

Commit b79ca45

Browse files
committed
C++: Undo the iterator.qll change. Notice that it was 'and' not 'or'.
1 parent e18f290 commit b79ca45

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • cpp/ql/src/semmle/code/cpp/models/implementations

cpp/ql/src/semmle/code/cpp/models/implementations/Iterator.qll

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ private class IteratorTraits extends Class {
3131
*/
3232
private class IteratorByTypedefs extends Iterator, Class {
3333
IteratorByTypedefs() {
34-
this.getAMember()
35-
.(TypedefType)
36-
.hasName(["difference_type", "value_type", "pointer", "reference", "iterator_category"]) and
34+
this.getAMember().(TypedefType).hasName("difference_type") and
35+
this.getAMember().(TypedefType).hasName("value_type") and
36+
this.getAMember().(TypedefType).hasName("pointer") and
37+
this.getAMember().(TypedefType).hasName("reference") and
38+
this.getAMember().(TypedefType).hasName("iterator_category") and
3739
not this.hasQualifiedName("std", "iterator_traits")
3840
}
3941
}

0 commit comments

Comments
 (0)