Files
codeql/cpp/ql/test/library-tests/valuenumbering/HashCons/HashCons.ql
2018-09-10 12:22:43 -07:00

13 lines
284 B
Plaintext

import cpp
import semmle.code.cpp.valuenumbering.HashCons
from HashCons h
where strictcount(h.getAnExpr()) > 1
select
h,
strictconcat(Location loc
| loc = h.getAnExpr().getLocation()
| loc.getStartLine() +
":c" + loc.getStartColumn() + "-c" + loc.getEndColumn()
, " ")