[PATCH] D75511: [APFloat] Remove neg in favour of unary operator-

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 09:05:57 PST 2020


foad added a comment.

In D75511#1903227 <https://reviews.llvm.org/D75511#1903227>, @sepavloff wrote:

> Some C++ programming styles discourage using overloaded operators, because functions express programmer's intentions clearer.


Sure, but I don't see anything in the LLVM Programmer’s Manual or LLVM Coding Standards that discourages it. And I think overloading arithmetic operators for a numeric type is the sanest possible use of overloading.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75511/new/

https://reviews.llvm.org/D75511





More information about the llvm-commits mailing list