CodeQL library for C/C++
codeql/cpp-all 1.1.0 (changelog, source)

Predicate getTypeIdentityString

Gets a string that uniquely identifies this type, suitable for use when debugging queries. All typedefs and decltypes are expanded, and all symbol names are fully qualified.

This operation is very expensive, and should not be used in production queries.

Import path

import semmle.code.cpp.Print
string getTypeIdentityString(Type type)