HomePhabricator

Mark vector::operator[] and front/back as noexcept. We already do this for…

Authored by mclow.lists on Thu, Mar 14, 5:29 PM.

Description

Mark vector::operator[] and front/back as noexcept. We already do this for string and string_view. This should give better codegen inside of noexcept functions. Add tests for op[]/front/back/at, because apparently we had none.

llvm-svn: 356224

Details

Committed
mclow.listsThu, Mar 14, 5:29 PM
Parents
rGf2192b204ff4: [analyzer] RetainCount: A function isn't a CFRetain if it takes no arguments.
Branches
Unknown
Tags
Unknown