CodeQL library for C/C++

Member predicate DeclarationEntry::getDeclaration

Gets the declaration for which this is a declaration entry.

Note that this is not always the inverse of Declaration.getADeclarationEntry(), for example if C is a TemplateClass, I is an instantiation of C, and D is a Declaration of C, then: C.getADeclarationEntry() returns D I.getADeclarationEntry() returns D but D.getDeclaration() only returns C

Declaration getDeclaration()