Files
codeql/cpp/ql/lib/semmle/code/cpp/ir/internal/IRCppLanguageDebug.qll
2023-04-25 17:51:04 +01:00

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)
}