(unchanged from the one I linked on IRC)
Take a Declaration* instead of DeclarationPointer.
Returns struct { FunctionDeclaration* declaration, bool isConstructor } instead of QPair<FunctionDeclarationPointer, bool>.
Struct for readable attribute names rather than .first and .second.
Drop the magic pointer type because most callers only wrap a normal one for this call anyway.
^^^
Sanity-check? I don't see a need for them, and many other helper methods use normal pointers.