Files
codeql/cpp/ql/test/library-tests/valuenumbering/GlobalValueNumbering/GlobalValueNumbering.ql
2018-08-02 17:53:23 +01:00

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()
, " ")