commit | cebbb5ed8d86830acb37aacc28ae7a6390b50d75 | [log] [tgz] |
---|---|---|
author | Pete Cooper <peter_cooper@apple.com> | Wed Aug 17 22:06:59 2016 +0000 |
committer | Pete Cooper <peter_cooper@apple.com> | Wed Aug 17 22:06:59 2016 +0000 |
tree | bcd63ab13c288a50da03ec8baf8d349d17216fe5 | |
parent | e65e275cf2f6a65b444dcbd54ec18f7c91c9ba5f [diff] |
Fix reverse to work on const rbegin()/rend(). Duncan found that reverse worked on mutable rbegin(), but the has_rbegin trait didn't work with a const method. See http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20160815/382890.html for more details. Turns out this was already solved in clang with has_getDecl. Copied that and made it work for rbegin. This includes the tests Duncan attached to that thread, including the traits test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278991 91177308-0d34-0410-b5e6-96231b3b80d8