[PATCH] D83431: [Docs] CodingStandards: for_each is discouraged

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 15:20:29 PDT 2020


lebedev.ri added inline comments.


================
Comment at: llvm/docs/CodingStandards.rst:1305
 
+Usage of ``std::for_each()``/``llvm::for_each()`` functions is discouraged.
+
----------------
hubert.reinterpretcast wrote:
> Even if what's available in the context of the code is a pair of iterators and a callable (and using a range-based for loop would involve extra boilerplate)?
That is my understanding, yes.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83431





More information about the llvm-commits mailing list