mirror of
https://github.com/github/codeql.git
synced 2026-03-31 12:48:17 +02:00
C++: Add Function.hasAmbiguousReturnType.
This commit is contained in:
@@ -524,6 +524,14 @@ class Function extends Declaration, ControlFlowNode, AccessHolder, @function {
|
||||
not exists(NewOrNewArrayExpr new | e = new.getAllocatorCall().getArgument(0))
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if this function has ambiguous return type (this occurs sometimes in
|
||||
* Build Mode None).
|
||||
*/
|
||||
predicate hasAmbiguousReturnType() {
|
||||
count(this.getType()) != 1
|
||||
}
|
||||
}
|
||||
|
||||
pragma[noinline]
|
||||
|
||||
Reference in New Issue
Block a user