CodeQL library for C/C++
Search

Predicate getIdentityString

Gets a string that uniquely identifies this declaration, suitable for use when debugging queries. Only holds for functions, user-defined types, global and namespace-scope variables, and member variables.

This operation is very expensive, and should not be used in production queries. Consider using hasName() or hasQualifiedName() for identifying known declarations in production queries.

Import path

import semmle.code.cpp.Print
string getIdentityString(Declaration decl)