Merge pull request #21457 from geoffw0/intmultlong

C++: Fix BMN issue with cpp/integer-multiplication-cast-to-long.
This commit is contained in:
Geoffrey White
2026-03-16 19:02:16 +00:00
committed by GitHub
5 changed files with 43 additions and 1 deletions

View File

@@ -524,6 +524,12 @@ class Function extends Declaration, ControlFlowNode, AccessHolder, @function {
not exists(NewOrNewArrayExpr new | e = new.getAllocatorCall().getArgument(0))
)
}
/**
* Holds if this function has an ambiguous return type, meaning that zero or multiple return
* types for this function are present in the database (this can occur in `build-mode: none`).
*/
predicate hasAmbiguousReturnType() { count(this.getType()) != 1 }
}
pragma[noinline]