llvm-project/clang/lib/ARCMigrate
Pete Cooper 57d3f14502 Use llvm::reverse to make a bunch of loops use foreach. NFC.
In llvm commit r243581, a reverse range adapter was added which allows
us to change code such as

  for (auto I = Fields.rbegin(), E = Fields.rend(); I != E; ++I) {

in to

  for (const FieldDecl *I : llvm::reverse(Fields))

This commit changes a few of the places in clang which are eligible to use
this new adapter.

llvm-svn: 243663
2015-07-30 17:22:52 +00:00
..
ARCMT.cpp Make the clang module container format selectable from the command line. 2015-07-17 01:19:54 +00:00
ARCMTActions.cpp Introduce a PCHContainerOperations interface (NFC). 2015-06-20 18:53:08 +00:00
CMakeLists.txt Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
FileRemapper.cpp Use the simpler version of llvm::sys::fs::exists. 2014-09-11 18:10:13 +00:00
Internals.h Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created. 2014-08-27 06:28:36 +00:00
Makefile
ObjCMT.cpp Switch users of the 'for (StmtRange range = stmt->children(); range; ++range)‘ pattern to range for loops. 2015-07-02 21:03:14 +00:00
PlistReporter.cpp Fix layering violation: include/clang/Basic/PlistSupport.h should not include 2015-01-28 20:14:54 +00:00
TransAPIUses.cpp [modules] Stop trying to fake up a linear MacroDirective history. 2015-04-29 23:20:19 +00:00
TransARCAssign.cpp s/tranform/transform/ 2012-11-14 15:08:31 +00:00
TransAutoreleasePool.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
TransBlockObjCVariable.cpp [C++11] Replacing BlockDecl iterators capture_begin() and capture_end() with iterator_range captures(). Updating all of the usages of the iterators with range-based for loops. 2014-03-14 18:34:04 +00:00
TransEmptyStatementsAndDealloc.cpp [C++11] Use 'nullptr'. 2014-05-07 06:21:57 +00:00
TransGCAttrs.cpp [C++11] Use 'nullptr'. 2014-05-07 06:21:57 +00:00
TransGCCalls.cpp Get ARCMT/GC-check-warn-nsalloc.m working 2014-05-19 22:51:11 +00:00
TransProperties.cpp [C++11] Use 'nullptr'. 2014-05-07 06:21:57 +00:00
TransProtectedScope.cpp [C++11] Use 'nullptr'. 2014-05-07 06:21:57 +00:00
TransRetainReleaseDealloc.cpp [AST] Remove StmtRange in favor of an iterator_range. 2015-07-18 17:09:36 +00:00
TransUnbridgedCasts.cpp [C++11] Use 'nullptr'. 2014-05-07 06:21:57 +00:00
TransUnusedInitDelegate.cpp [modules] Stop trying to fake up a linear MacroDirective history. 2015-04-29 23:20:19 +00:00
TransZeroOutPropsInDealloc.cpp [C++11] Use 'nullptr'. 2014-05-07 06:21:57 +00:00
TransformActions.cpp Use llvm::reverse to make a bunch of loops use foreach. NFC. 2015-07-30 17:22:52 +00:00
Transforms.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
Transforms.h [modules] Stop trying to fake up a linear MacroDirective history. 2015-04-29 23:20:19 +00:00