[PATCH] D32743: [clang-tidy] Add new cert-dcl21-cpp check.

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 2 10:39:21 PDT 2017


Eugene.Zelenko added a comment.

We have misc-unconventional-assign-operator and google-runtime-operator checks already. Form user perspective, I think will be good idea to have single check for different operators.



================
Comment at: docs/ReleaseNotes.rst:63
+
+  Checks if the overloaded postfix ``++`` and ``--`` operator return a constant object.
+
----------------
JonasToth wrote:
> i think the use of `operator++/--` would be better, like in the doc page.
Either it should be operator return**s**, or operator**s** return


Repository:
  rL LLVM

https://reviews.llvm.org/D32743





More information about the cfe-commits mailing list