mirror of
https://github.com/github/codeql.git
synced 2025-12-23 20:26:32 +01:00
10 lines
319 B
Plaintext
10 lines
319 B
Plaintext
import cpp
|
|
|
|
// A variable may have more than one initializer because variables are merged
|
|
// when they have the same name and appear in the same source file, but their
|
|
// initializers are not merged.
|
|
|
|
from Variable v
|
|
select v, v.getInitializer().getExpr().getValue(),
|
|
count(v.getInitializer().getExpr().getValue())
|