]> granicus.if.org Git - clang/commit
Driver: Use pointee_iterator rather than iterating over unique_ptrs
authorJustin Bogner <mail@justinbogner.com>
Fri, 3 Oct 2014 01:04:53 +0000 (01:04 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 3 Oct 2014 01:04:53 +0000 (01:04 +0000)
commit6597883c1eb44eb00acf9dc0afde4ea9ae709e87
treef4413af46e749c855b2de7cdaa518a1c14f4661c
parentb3385dcc44e546b3647c785bd758e04d6dc72d3d
Driver: Use pointee_iterator rather than iterating over unique_ptrs

There's probably never a good reason to iterate over unique_ptrs. This
lets us use range-for and say Job.foo instead of (*it)->foo in a few
places.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@218938 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Job.h
lib/Driver/Compilation.cpp
lib/Driver/Driver.cpp
lib/Driver/Job.cpp
lib/Frontend/CreateInvocationFromCommandLine.cpp
lib/Tooling/CompilationDatabase.cpp
lib/Tooling/Tooling.cpp