[PATCH] D24894: [clang-tidy] Prefer transparent functors to non-transparent one.
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 24 16:00:35 PDT 2016
xazax.hun created this revision.
xazax.hun added reviewers: alexfh, hokein.
xazax.hun added a subscriber: cfe-commits.
xazax.hun set the repository for this revision to rL LLVM.
xazax.hun added a project: clang-tools-extra.
Herald added subscribers: mgorny, beanz.
This check finds the usages of non-transparent functors and suggest to use the transparent ones.
This check seems to be surprisingly slow though. Maybe because the amount of typelocs in the source code? I did not have a chance to do a profiling yet, but plan to do it later. Feel free to postpone the review until the profiling is done.
Repository:
rL LLVM
https://reviews.llvm.org/D24894
Files:
clang-tidy/modernize/CMakeLists.txt
clang-tidy/modernize/ModernizeTidyModule.cpp
clang-tidy/modernize/UseTransparentFunctorsCheck.cpp
clang-tidy/modernize/UseTransparentFunctorsCheck.h
docs/ReleaseNotes.rst
docs/clang-tidy/checks/list.rst
docs/clang-tidy/checks/modernize-use-transparent-functors.rst
test/clang-tidy/modernize-use-transparent-functors.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24894.72397.patch
Type: text/x-patch
Size: 12478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160924/efeafcf4/attachment-0001.bin>
More information about the cfe-commits
mailing list