Due to references, expression type does not always correspond to an expected method return type (e.g. for a method returning int & the expression type of the call would still be int).
We have a helper method for getting the expected type on CallExpr, but not on ObjCMessageExpr
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
clang/include/clang/AST/ExprObjC.h | ||
---|---|---|
1185 ↗ | (On Diff #183434) | Maybe something like: Get the return type of the message being sent. This is not always the type of the message expression itself because of references. It is also not always the declared return type of the method because of `instancetype`. |