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
diff --git a/clang/Driver/PrintParserCallbacks.cpp b/clang/Driver/PrintParserCallbacks.cpp
index 0048a6d..2a85f64 100644
--- a/clang/Driver/PrintParserCallbacks.cpp
+++ b/clang/Driver/PrintParserCallbacks.cpp
@@ -436,7 +436,7 @@
     }
   
     // Postfix Expressions.
-    virtual ExprResult ActOnPostfixUnaryOp(SourceLocation OpLoc, 
+    virtual ExprResult ActOnPostfixUnaryOp(Scope *S, SourceLocation OpLoc, 
                                            tok::TokenKind Kind, ExprTy *Input) {
       llvm::cout << __FUNCTION__ << "\n";
       return 0;
@@ -467,8 +467,8 @@
     }
   
     // Unary Operators.  'Tok' is the token for the operator.
-    virtual ExprResult ActOnUnaryOp(SourceLocation OpLoc, tok::TokenKind Op,
-                                    ExprTy *Input) {
+    virtual ExprResult ActOnUnaryOp(Scope *S, SourceLocation OpLoc, 
+                                    tok::TokenKind Op, ExprTy *Input) {
       llvm::cout << __FUNCTION__ << "\n";
       return 0;
     }