Skip to content

Commit 7bd6208

Browse files
committed
C++ overlay: Simplify QL
Remove redundant variable names.
1 parent fbcb65a commit 7bd6208

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cpp/ql/lib/semmle/code/cpp/internal/Overlay.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ private string getSingleLocationFilePath(@element e) {
4545
overlay[local]
4646
private string getMultiLocationFilePath(@element e) {
4747
exists(@location_default loc |
48-
exists(@var_decl vd | var_decls(vd, e, _, _, loc))
48+
var_decls(_, e, _, _, loc)
4949
or
50-
exists(@fun_decl fd | fun_decls(fd, e, _, _, loc))
50+
fun_decls(_, e, _, _, loc)
5151
or
52-
exists(@type_decl td | type_decls(td, e, loc))
52+
type_decls(_, e, loc)
5353
or
54-
exists(@namespace_decl nd | namespace_decls(nd, e, loc, _))
54+
namespace_decls(_, e, loc, _)
5555
|
5656
result = getLocationFilePath(loc)
5757
)

0 commit comments

Comments
 (0)