mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
autoformat
This commit is contained in:
@@ -17,5 +17,5 @@ query predicate htmlElement_getChild(HTML::Element elt, int i, HTML::Element chi
|
||||
query predicate htmlElement_getName(HTML::Element elt, string name) { name = elt.getName() }
|
||||
|
||||
query predicate htmlElement_getParent(HTML::Element elt, HTML::Element parent) {
|
||||
parent = elt.getParent()
|
||||
}
|
||||
parent = elt.getParent()
|
||||
}
|
||||
|
||||
@@ -11,7 +11,11 @@ query predicate methodCallTypeInference(DataFlow::MethodCallNode call, string ty
|
||||
types = call.analyze().ppTypes()
|
||||
}
|
||||
|
||||
query predicate methodCallTypeInferenceUsage(DataFlow::MethodCallNode call, DataFlow::Node use, AbstractValue val) {
|
||||
call.flowsTo(use) and use != call and not exists(use.getASuccessor()) and
|
||||
val = use.analyze().getAValue()
|
||||
query predicate methodCallTypeInferenceUsage(
|
||||
DataFlow::MethodCallNode call, DataFlow::Node use, AbstractValue val
|
||||
) {
|
||||
call.flowsTo(use) and
|
||||
use != call and
|
||||
not exists(use.getASuccessor()) and
|
||||
val = use.analyze().getAValue()
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ query predicate tupleTypes(Expr e, TupleType tuple, int n, Type element, int min
|
||||
rest = getRest(tuple)
|
||||
}
|
||||
|
||||
query predicate unknownType(Expr e,Type type) {
|
||||
type = e.getType() and
|
||||
e.getType() instanceof UnknownType
|
||||
}
|
||||
query predicate unknownType(Expr e, Type type) {
|
||||
type = e.getType() and
|
||||
e.getType() instanceof UnknownType
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user