This is an archive of the discontinued LLVM Phabricator instance.

Remove uses of deprecated std::unary_function, binary_function, and pointer_to_unary_function.
AbandonedPublic

Authored by coder0xff on Jul 15 2017, 11:17 AM.

Details

Reviewers
None

Event Timeline

coder0xff created this revision.Jul 15 2017, 11:17 AM

Seems to be duplicate of D35455.

include/llvm/ADT/STLExtras.h
61

Please use using instead. See http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-using.html. Same in other places.

Use using instead of typedef.

coder0xff marked an inline comment as done.Jul 23 2017, 4:59 AM
coder0xff abandoned this revision.Jul 29 2017, 9:55 AM

There seems to be a problem in the diff, so I will resubmit.

Patch description seems wrong - the change has nothing about any *_function?