DescriptionConvert GN's deps iterator to work with range-based for loops.
Reworks DepsIterator so it is compatible with STL iterators enough to work with range-based for loops. The iterator is now created by a target rather than taking a target as an argument, which makes the loops more natural.
I also changed some loops around code I was touching to use range-based.
Committed: https://crrev.com/a09df11aa1c5f416df4fb97f2303d9c1ff76b150
Cr-Commit-Position: refs/heads/master@{#297122}
Patch Set 1 #Patch Set 2 : new name #Patch Set 3 : #
Total comments: 4
Messages
Total messages: 12 (3 generated)
|