clang: port foreach -> range-based for

Authored by kossebau on Jul 3 2019, 1:46 PM.