summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/readability-delete-null-pointer.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2016-12-31 02:33:22 +0000
committerPhilip Reames <listmail@philipreames.com>2016-12-31 02:33:22 +0000
commit0ef5d288b4db7baec923ce3707678d036bebf48d (patch)
tree01772a7c354f3dea510d9efd0723597d16fd95a1 /clang-tools-extra/test/clang-tidy/readability-delete-null-pointer.cpp
parent97cf837b465e9e95fc31368f02ca20036811efba (diff)
downloadbcm5719-llvm-0ef5d288b4db7baec923ce3707678d036bebf48d.tar.gz
bcm5719-llvm-0ef5d288b4db7baec923ce3707678d036bebf48d.zip
[SmallPtrSet] Introduce a find primitive and rewrite count/erase in terms of it
This was originally motivated by a compile time problem I've since figured out how to solve differently, but the cleanup seemed useful. We had the same logic - which essentially implemented find - in several places. By commoning them out, I can implement find and allow erase to be inlined at the call sites if profitable. Differential Revision: https://reviews.llvm.org/D28183 llvm-svn: 290779
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/readability-delete-null-pointer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud