Replace std::bind with a lambda.
Not yet working for member functions.
Differential D16962
clang-tidy: avoid std::bind jbcoe on Feb 7 2016, 6:40 AM. Authored by
Details Replace std::bind with a lambda. Not yet working for member functions.
Diff Detail
Event TimelineComment Actions Require C++14 for improved fixits. Do not attempt to generate fixits for more complicated uses of bind. Comment Actions Moved check to readability module. Aside: would it be worthwhile creating a python script to move checks from one module to another? Comment Actions It's reasonable to teach the rename_check.py script move across modules. (Substantial comments later)
Comment Actions Apply requested fixes from review. Thanks for taking time to review this, the patch is much improved for the attention.
Comment Actions Minor fixes from review.
Comment Actions Please regenerate the patch with the full context (see http://llvm.org/docs/Phabricator.html).
Comment Actions Move to modernize. Rename to avoid-bind as a later patch will add support for boost::bind, std::bind1st etc.
Comment Actions Looks good. Thank you! Do you need someone to submit the patch for you?
Comment Actions I can submit the patch myself, thanks. Thanks again for taking the time to give such a thorough review. |