[clang-format] Walk backwards from end() instead of forwards from rend().
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 11 Apr 2016 12:19:19 +0000 (12:19 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 11 Apr 2016 12:19:19 +0000 (12:19 +0000)
commit5ffc24e20226267314e13b0f2b82afdf878305e4
tree61f84e3282923f24dd2078b0fefa3129fb621a5a
parent848a513d0ae33f1b516ea487e15d84721aa8fe91
[clang-format] Walk backwards from end() instead of forwards from rend().

This should've been forwards from rbegin(), reverse iterators are just
too confusing to be used by mere mortals. Fixes out-of-bounds walks over
the list.

llvm-svn: 265934
clang/lib/Format/UnwrappedLineParser.cpp