It is not currently possible to directly specify extended attributes for an operation's return type. One could work around this by using a typedef (e.g. typedef [Clamp] long Clamped; Clamped foo(); ), but it feels like an oversight that you can't do it directly.