[PATCH] D31860: Add more examples to clang tidy checkers

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 13 09:34:20 PDT 2017


alexfh added inline comments.


================
Comment at: docs/clang-tidy/checks/misc-unused-parameters.rst:15
+
+  void a(int  /*i*/) {}
+
----------------
sylvestre.ledru wrote:
> alexfh wrote:
> > nit: two spaces before the comment.
> I believe it is the case ? 
> I stole this from the unit test //test/clang-tidy/misc-unused-parameters.c//
Indeed. But now we have `-format-style=` option to fix formatting after applying fixes ;). Since it's not on by default, it's fair to leave the example as is.


https://reviews.llvm.org/D31860





More information about the cfe-commits mailing list