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)
commit92c8c95943269de3a06c449573a9b3e432881e90
treec9b33e5ddf748a2dc49cd7e87908c7ed9e015a48
parent74246aaf89fc596dd018c63365d894d0fc4abe42
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.

llvm-svn: 219938
clang/tools/driver/driver.cpp