diff --git a/CodeQL_Queries/cpp/Chrome/bindings.qll b/CodeQL_Queries/cpp/Chrome/bindings.qll index 695ab27..796ce7e 100644 --- a/CodeQL_Queries/cpp/Chrome/bindings.qll +++ b/CodeQL_Queries/cpp/Chrome/bindings.qll @@ -11,7 +11,7 @@ class StrongBinding extends ClassTemplateInstantiation { } Type getBindingType() { - result = this.getTemplateArgument(0).stripType() + result = this.getTemplateArgument(0).(Type).stripType() } } @@ -21,7 +21,7 @@ class Binding extends ClassTemplateInstantiation { } Type getBindingType() { - result = this.getTemplateArgument(0).stripType() + result = this.getTemplateArgument(0).(Type).stripType() } } @@ -32,7 +32,7 @@ class MojoReceiver extends ClassTemplateInstantiation { } Type getBindingType() { - result = this.getTemplateArgument(0).stripType() + result = this.getTemplateArgument(0).(Type).stripType() } } diff --git a/CodeQL_Queries/cpp/Chrome/qlpack.yml b/CodeQL_Queries/cpp/Chrome/qlpack.yml new file mode 100644 index 0000000..2c2b5a3 --- /dev/null +++ b/CodeQL_Queries/cpp/Chrome/qlpack.yml @@ -0,0 +1,3 @@ +name: chrome_ql +version: 0.0.0 +libraryPathDependencies: codeql-cpp