mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
add qldoc to benignContext predicate
Co-Authored-By: Esben Sparre Andreasen <42067045+esben-semmle@users.noreply.github.com>
This commit is contained in:
committed by
Erik Krogh Kristensen
parent
63b3005217
commit
8c7f316a57
@@ -29,6 +29,9 @@ predicate isStub(Function f) {
|
||||
f instanceof ExternalDecl
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if `e` is in a syntactic context where it likely is fine that the value of `e` comes from a call to a returnless function.
|
||||
*/
|
||||
predicate benignContext(Expr e) {
|
||||
inVoidContext(e) or
|
||||
|
||||
|
||||
Reference in New Issue
Block a user