rename overlay[caller] to overlay[caller?]

This commit is contained in:
Kasper Svendsen
2025-06-20 13:20:01 +02:00
parent 2da8d61984
commit 81b677a2d9
11 changed files with 27 additions and 27 deletions

View File

@@ -794,7 +794,7 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
innercc = getCallContextCall(call, inner)
}
overlay[caller]
overlay[caller?]
pragma[inline]
predicate fwdFlowIn(
Call call, ArgNd arg, Callable inner, ParamNd p, Cc outercc, CcCall innercc,
@@ -2324,7 +2324,7 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
* For more information, see
* [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
*/
overlay[caller]
overlay[caller?]
pragma[inline]
deprecated final predicate hasLocationInfo(
string filepath, int startline, int startcolumn, int endline, int endcolumn
@@ -2528,7 +2528,7 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
class ApHeadContent = Unit;
overlay[caller]
overlay[caller?]
pragma[inline]
ApHeadContent getHeadContent(Ap ap) { exists(result) and ap = true }

View File

@@ -677,7 +677,7 @@ module MakeImplCommon<LocationSig Location, InputSig<Location> Lang> {
class CcCall = CallContextCall;
overlay[caller]
overlay[caller?]
pragma[inline]
predicate matchesCall(CcCall cc, Call call) {
cc = Input2::getSpecificCallContextCall(call, _) or
@@ -889,7 +889,7 @@ module MakeImplCommon<LocationSig Location, InputSig<Location> Lang> {
pragma[nomagic]
private Callable getEnclosingCallable0() { nodeEnclosingCallable(this.projectToNode(), result) }
overlay[caller]
overlay[caller?]
pragma[inline]
Callable getEnclosingCallable() {
pragma[only_bind_out](this).getEnclosingCallable0() = pragma[only_bind_into](result)
@@ -904,7 +904,7 @@ module MakeImplCommon<LocationSig Location, InputSig<Location> Lang> {
isTopType(result) and this.isImplicitReadNode(_)
}
overlay[caller]
overlay[caller?]
pragma[inline]
Type getType() { pragma[only_bind_out](this).getType0() = pragma[only_bind_into](result) }
@@ -2416,14 +2416,14 @@ module MakeImplCommon<LocationSig Location, InputSig<Location> Lang> {
* predicate ensures that joins go from `n` to the result instead of the other
* way around.
*/
overlay[caller]
overlay[caller?]
pragma[inline]
Callable getNodeEnclosingCallable(Node n) {
nodeEnclosingCallable(pragma[only_bind_out](n), pragma[only_bind_into](result))
}
/** Gets the type of `n` used for type pruning. */
overlay[caller]
overlay[caller?]
pragma[inline]
Type getNodeDataFlowType(Node n) {
nodeType(pragma[only_bind_out](n), pragma[only_bind_into](result))

View File

@@ -1786,7 +1786,7 @@ module MakeImplStage1<LocationSig Location, InputSig<Location> Lang> {
* For more information, see
* [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
*/
overlay[caller]
overlay[caller?]
pragma[inline]
deprecated predicate hasLocationInfo(
string filepath, int startline, int startcolumn, int endline, int endcolumn