Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] CPPFunctionType - method or function?

Andrew, or somebody else,
Could you please help me understand design of CPPFunctionType class. The class seems to be used for both, class methods and standalone functions, but it doesn't make a distinction between the two. I would expect CPPFunctionType to know the type of its
implicit (this) parameter. This would also make it easy to tell apart method and standalone function types, since the latter don't have implicit parameters.

Without making such changes, is there another way to determine if CPPFunctionType describes a method or a function? I need this information to generate either CPPPointerType or CPPPointerToMemberType for the type of _expression_ with unary & operator. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=201204.

-sergey

Back to the top