mirror of
https://github.com/github/codeql.git
synced 2026-04-10 09:34:00 +02:00
10 lines
307 B
Plaintext
10 lines
307 B
Plaintext
private import cpp
|
|
private import semmle.code.cpp.Print as Print
|
|
|
|
string getIdentityString(Declaration decl) {
|
|
if decl instanceof StaticLocalVariable
|
|
then
|
|
exists(StaticLocalVariable v | v = decl | result = v.getType().toString() + " " + v.getName())
|
|
else result = Print::getIdentityString(decl)
|
|
}
|