njames93 added a comment.

In D98692#2631504 <https://reviews.llvm.org/D98692#2631504>, @nullptr.cpp wrote:

> The relevant rule is F.16: For "in" parameters, pass cheaply-copied types by 
> value and others by reference to const 
> <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#f16-for-in-parameters-pass-cheaply-copied-types-by-value-and-others-by-reference-to-const>.
> This should be done in another checker dedicated for parameter passing.

That's not exactly a relevant rule, That describes handling of `In` parameters. 
However, the point I'm making is we should enforce that parameters to 
comparison functions are `In` parameters.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D98692

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

Reply via email to