[cfe-dev] RFC: Allow non-member operator overloads for SVE types

Richard Sandiford via cfe-dev cfe-dev at lists.llvm.org
Tue Mar 31 12:58:06 PDT 2020


Thanks for the comments.

Chris Tetreault <ctetreau at quicinc.com> writes:
>    Personally, I think allowing the operators is probably the way to go. The Pros seem to mainly effect the developers of Clang, and the Cons seem to mainly effect the users of Clang. I'd prefer if you did not have to define the operators in some special namespace, as I think that'll be very awkward in user code.

Declaring them static at global scope is also OK.  I imagine a common
use case would be to have header files with static inline functions.

Thanks,
Richard


More information about the cfe-dev mailing list