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

Member predicate Declaration::getQualifiedName

Gets the name of the declaration, fully qualified with its namespace and declaring type.

For performance, prefer the multi-argument hasQualifiedName or hasGlobalName predicates since they don’t construct so many intermediate strings. For debugging, the semmle.code.cpp.Print module produces more detailed output but are also more expensive to compute.

Example: getQualifiedName() = "namespace1::namespace2::TemplateClass1<int>::Class2::memberName".

string getQualifiedName()