Skip to content

Commit 98d2c6d

Browse files
committed
fix stripType() cannot be resolved for type Locatable bug in bindings.qll
1 parent 006ce9d commit 98d2c6d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Diff for: CodeQL_Queries/cpp/Chrome/bindings.qll

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class StrongBinding extends ClassTemplateInstantiation {
1111
}
1212

1313
Type getBindingType() {
14-
result = this.getTemplateArgument(0).stripType()
14+
result = this.getTemplateArgument(0).(Type).stripType()
1515
}
1616
}
1717

@@ -21,7 +21,7 @@ class Binding extends ClassTemplateInstantiation {
2121
}
2222

2323
Type getBindingType() {
24-
result = this.getTemplateArgument(0).stripType()
24+
result = this.getTemplateArgument(0).(Type).stripType()
2525
}
2626
}
2727

@@ -32,7 +32,7 @@ class MojoReceiver extends ClassTemplateInstantiation {
3232
}
3333

3434
Type getBindingType() {
35-
result = this.getTemplateArgument(0).stripType()
35+
result = this.getTemplateArgument(0).(Type).stripType()
3636
}
3737
}
3838

Diff for: CodeQL_Queries/cpp/Chrome/qlpack.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: chrome_ql
2+
version: 0.0.0
3+
libraryPathDependencies: codeql-cpp

0 commit comments

Comments
 (0)