mirror of
https://github.com/github/codeql.git
synced 2026-03-23 16:06:47 +01:00
13 lines
291 B
Plaintext
13 lines
291 B
Plaintext
import cpp
|
|
import semmle.code.cpp.valuenumbering.GlobalValueNumbering
|
|
|
|
from GVN g
|
|
where strictcount(g.getAnExpr()) > 1
|
|
select
|
|
g,
|
|
strictconcat(Location loc
|
|
| loc = g.getAnExpr().getLocation()
|
|
| loc.getStartLine() +
|
|
":c" + loc.getStartColumn() + "-c" + loc.getEndColumn()
|
|
, " ")
|