]> granicus.if.org Git - clang/commit
Added operator overloading for unary operators, post-increment, and
authorDouglas Gregor <dgregor@apple.com>
Wed, 19 Nov 2008 15:42:04 +0000 (15:42 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 19 Nov 2008 15:42:04 +0000 (15:42 +0000)
commit74253736184c0717a0649922551bf9d8b6815651
tree49fde4054461edd0563407010d0c4619e2c7e8fa
parent08b2c3743a29a2dddcf72e95f747760e213cdde7
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59638 91177308-0d34-0410-b5e6-96231b3b80d8
Driver/PrintParserCallbacks.cpp
include/clang/Parse/Action.h
lib/AST/Expr.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/ParseStmt.cpp
lib/Sema/Sema.h
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOverload.cpp
test/SemaCXX/overloaded-builtin-operators.cpp
test/SemaCXX/overloaded-operator.cpp
www/cxx_status.html