[cfe-dev] Some questions about iterating over decls and types

Douglas Gregor dgregor at apple.com
Wed Feb 23 16:03:48 PST 2011


On Feb 23, 2011, at 1:03 PM, John Thompson wrote:

> Given a FunctionDecl, is there a way to iterate over the overloaded functions of a given name?

Perform name lookup in its context with FD->getDeclContext()->lookup(FD->getDeclName()).

> Given an array declaration QualType, how do I get the type of the array elements?
>  

Context.getAsArrayType(QT)->getElementType()

	- Doug



More information about the cfe-dev mailing list