From 7bd62087a4dfad73d8dc4d2c0dc0fb81672ccc1c Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 21 Jan 2026 18:06:43 +0000 Subject: [PATCH] C++ overlay: Simplify QL Remove redundant variable names. --- cpp/ql/lib/semmle/code/cpp/internal/Overlay.qll | 8 ++++---- 1 file changed, 4 insertions(+), 4 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..8272c40b1db1 100644 --- a/cpp/ql/lib/semmle/code/cpp/internal/Overlay.qll +++ b/cpp/ql/lib/semmle/code/cpp/internal/Overlay.qll @@ -45,13 +45,13 @@ private string getSingleLocationFilePath(@element e) { overlay[local] private string getMultiLocationFilePath(@element e) { exists(@location_default loc | - exists(@var_decl vd | var_decls(vd, e, _, _, loc)) + var_decls(_, e, _, _, loc) or - exists(@fun_decl fd | fun_decls(fd, e, _, _, loc)) + fun_decls(_, e, _, _, loc) or - exists(@type_decl td | type_decls(td, e, loc)) + type_decls(_, e, loc) or - exists(@namespace_decl nd | namespace_decls(nd, e, loc, _)) + namespace_decls(_, e, loc, _) | result = getLocationFilePath(loc) )