| commit | d08452f60a2731c279f3b845d84a4a8940844d99 | [log] [tgz] |
|---|---|---|
| author | Douglas Gregor <dgregor@apple.com> | Wed Nov 19 15:42:04 2008 +0000 |
| committer | Douglas Gregor <dgregor@apple.com> | Wed Nov 19 15:42:04 2008 +0000 |
| tree | fef20a1d72fc923018c89ab9a49977455bace01b | |
| parent | 3462c8ecdaf8bb18138c2ee2a99b213f7fd7cff9 [diff] |
Added operator overloading for unary operators, post-increment, and post-decrement, including support for generating all of the built-in operator candidates for these operators. C++ and C have different rules for the arguments to the builtin unary '+' and '-'. Implemented both variants in Sema::ActOnUnaryOp. In C++, pre-increment and pre-decrement return lvalues. Update Expr::isLvalue accordingly. llvm-svn: 59638