C++ overlay: Simplify QL

Remove redundant variable names.
This commit is contained in:
Ian Lynagh
2026-01-21 18:06:43 +00:00
parent fbcb65a5d9
commit 7bd62087a4

View File

@@ -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)
)