Skip to content

Commit 3cd6fd0

Browse files
committed
C/C++ overlay: Clean up cluttering comments
1 parent 7db4d62 commit 3cd6fd0

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,12 @@ private string getLocationFilePath(@location_default loc) {
2121
overlay[local]
2222
private string getSingleLocationFilePath(@element e) {
2323
exists(@location_default loc |
24-
// @var_decl has a direct location in the var_decls relation
2524
var_decls(e, _, _, _, loc)
2625
or
27-
// @fun_decl has a direct location in the fun_decls relation
2826
fun_decls(e, _, _, _, loc)
2927
or
30-
// @type_decl has a direct location in the type_decls relation
3128
type_decls(e, _, loc)
3229
or
33-
// @namespace_decl has a direct location in the namespace_decls relation
3430
namespace_decls(e, _, loc, _)
3531
|
3632
result = getLocationFilePath(loc)
@@ -43,19 +39,14 @@ private string getSingleLocationFilePath(@element e) {
4339
overlay[local]
4440
private string getMultiLocationFilePath(@element e) {
4541
exists(@location_default loc |
46-
// @variable gets its location(s) from its @var_decl(s)
4742
exists(@var_decl vd | var_decls(vd, e, _, _, loc))
4843
or
49-
// @function gets its location(s) from its @fun_decl(s)
5044
exists(@fun_decl fd | fun_decls(fd, e, _, _, loc))
5145
or
52-
// @usertype gets its location(s) from its @type_decl(s)
5346
exists(@type_decl td | type_decls(td, e, loc))
5447
or
55-
// @namespace gets its location(s) from its @namespace_decl(s)
5648
exists(@namespace_decl nd | namespace_decls(nd, e, loc, _))
5749
or
58-
// @macroinvocation gets its location(s) from macrolocationbind
5950
macrolocationbind(e, loc)
6051
|
6152
result = getLocationFilePath(loc)

0 commit comments

Comments
 (0)