]> granicus.if.org Git - clang/commit
Use iterators and algorithms to possibly make this code a bit tidier
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 16 Oct 2014 17:23:58 +0000 (17:23 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 16 Oct 2014 17:23:58 +0000 (17:23 +0000)
commit44e147df0ae056d1775e8c9726cc3d88b0e2979c
treed04655b265890aaf456cff2a46fcc2c4c04a9e73
parenta41df172134ce75a2e1d27e9ee2ed711df2dfd53
Use iterators and algorithms to possibly make this code a bit tidier

(also, the code executed once the element was found was split half
inside the loop and half after it - now put it all together after the
find operation)

I'm a bit concerned that this code is rather untested (commenting out
this whole function and running check-clang doesn't fail any tests)...

And I wish I had polymorphic lambdas.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219938 91177308-0d34-0410-b5e6-96231b3b80d8
tools/driver/driver.cpp