ccotter added a comment.

Trivial types should not be passed by rvalue reference, but by value per the 
diagram under 
http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#fcall-parameter-passing.
 I feel like adding an option to opt-out of this is missing the point of this 
check, and rvalue references of trivial type should just be fixed rather than 
adding an option to permit them.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D141569

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to