From 90d8548acc46468bb048f88af590726022c8983d Mon Sep 17 00:00:00 2001 From: idrissrio Date: Fri, 30 Jan 2026 11:27:58 +0100 Subject: [PATCH] C/C++ overlay: change discard predicate visibility --- 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 5402672bfd7..b8f56c16697 100644 --- a/cpp/ql/lib/semmle/code/cpp/internal/Overlay.qll +++ b/cpp/ql/lib/semmle/code/cpp/internal/Overlay.qll @@ -21,7 +21,7 @@ private string getLocationFilePath(@location_default loc) { * Gets the file path for an element with a single location. */ overlay[local] -private string getSingleLocationFilePath(@element e) { +string getSingleLocationFilePath(@element e) { exists(@location_default loc | var_decls(e, _, _, _, loc) or @@ -75,7 +75,7 @@ private string getSingleLocationFilePath(@element e) { * Gets the file path for an element with potentially multiple locations. */ overlay[local] -private string getMultiLocationFilePath(@element e) { +string getMultiLocationFilePath(@element e) { exists(@location_default loc | exists(@var_decl vd | var_decls(vd, e, _, _, loc)) or