commit | 6d9ef30c5026e80fb398ed32bcdf69e4d714f033 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Sun Feb 12 18:57:57 2012 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Sun Feb 12 18:57:57 2012 +0000 |
tree | 096eca5e103d89de7963dfac88c6c9719cb1e154 | |
parent | f8af98286022f72157d84951b48fde5fb369ab29 [diff] |
Implement the standard decltype() semantics described in C++11 [dcl.type.simple]p4, which treats all xvalues as returning T&&. We had previously implemented a pre-standard variant of decltype() that doesn't cope with, e.g., static_ast<T&&>(e) very well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150348 91177308-0d34-0410-b5e6-96231b3b80d8