From 5e536fb1211f6d4516b7268a8245502fd1bd82f1 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 21 Jan 2026 18:13:58 +0000 Subject: [PATCH] C++: Rename `holdsInBase` to `isBase` Makes it consistent with isOverlay. --- cpp/ql/lib/semmle/code/cpp/internal/Overlay.qll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/ql/lib/semmle/code/cpp/internal/Overlay.qll b/cpp/ql/lib/semmle/code/cpp/internal/Overlay.qll index b870bbfb9f68..4f194d295867 100644 --- a/cpp/ql/lib/semmle/code/cpp/internal/Overlay.qll +++ b/cpp/ql/lib/semmle/code/cpp/internal/Overlay.qll @@ -62,7 +62,7 @@ private string getMultiLocationFilePath(@element e) { * overlay variant. */ overlay[local] -private predicate holdsInBase() { not isOverlay() } +private predicate isBase() { not isOverlay() } /** * Discards an element from the base variant if: @@ -71,7 +71,7 @@ private predicate holdsInBase() { not isOverlay() } */ overlay[discard_entity] private predicate discardElement(@element e) { - holdsInBase() and + isBase() and ( overlayChangedFiles(getSingleLocationFilePath(e)) or