ERROR: Could not resolve module cpp. #6624
-
👋 Hi, I'm new to CodeQL and I'm having issues running my first query against nginx in this codeql container. I was able to create the database fine with
It seems like I have
The query itself looks like this import cpp
Type getParameterTypeElement(Parameter p) {
result = p.getUnspecifiedType()
or
result = getParameterTypeElement(p).(PointerType).getBaseType().getUnspecifiedType()
}
Type getParameterBaseType(Parameter p) {
result = getParameterTypeElement(p) and not result instanceof PointerType
}
from Function f, Type t, string g
where not exists(Parameter p | p = f.getAParameter() | getParameterBaseType(p) instanceof Struct) and
t = f.getAParameter().getType() and
g = f.getType().toString()
select f, t, g Thanks for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Is |
Beta Was this translation helpful? Give feedback.
-
Do you have a (You'll need to declare a dependency on the |
Beta Was this translation helpful? Give feedback.
Do you have a
qlpack.yml
next to themultiargfunc.ql
(or in an ancestor directory)? What does it contain?(You'll need to declare a dependency on the
codeql-cpp
pack which provides thecpp
module. The place to do that is with thelibraryPathDependencies
keyword in theqlpack.yml
file).