[PATCH] D18442: A clang-tidy check for std:accumulate.

Piotr Padlewski via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 25 05:34:44 PDT 2016


Prazek added a subscriber: Prazek.

================
Comment at: docs/clang-tidy/checks/misc-fold-init-type.rst:16-17
@@ +15,4 @@
+
+.. code:: c++
+  auto a = {0.5f, 0.5f, 0.5f, 0.5f};
+  return std::accumulate(std::begin(a), std::end(a), 0);
----------------
Doesn't .. code node need new line?


http://reviews.llvm.org/D18442





More information about the cfe-commits mailing list