[PATCH] D33531: Clang-tidy readability: avoid const value return

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 29 05:22:37 PDT 2017


aaron.ballman added a comment.

I'm not opposed to this check, but I'm not keen on having a check that directly contradicts the output from another check. The `cert-dcl21-cpp` check will diagnose user's code when a postfix operator ++ or -- is *not* const-qualified. Would it make sense to silence this diagnostic in the presence of also checking for `cert-dcl21-cpp` for such operators?


Repository:
  rL LLVM

https://reviews.llvm.org/D33531





More information about the cfe-commits mailing list