llvm-project/clang/test
Douglas Gregor 7d5fc7e28b Initial, rudimentary implementation of operator overloading for binary
operators. For example, one can now write "x + y" where x or y is a
class or enumeration type, and Clang will perform overload resolution
for "+" based on the overloaded operators it finds.

The other kinds of overloadable operators in C++ will follow this same
approach. 

Three major issues remain:
  1) We don't find member operators
  2) Since we don't have user-defined conversion operators, we can't
  call any of the built-in overloaded operators in C++ [over.built].
  3) Once we've done the semantic checks, we drop the overloaded
  operator on the floor; it doesn't get into the AST at all.

llvm-svn: 58821
2008-11-06 23:29:22 +00:00
..
Analysis Add a test case for CFMakeCollectable. 2008-11-05 22:17:39 +00:00
CodeGen Quick fix for PR2950, infinite loop generating debug info for 2008-10-31 04:04:54 +00:00
CodeGenObjC NeXT: Emit protocol objects lazily. 2008-10-29 22:36:39 +00:00
Coverage Use #define trickery to de-XFAIL test/Coverage/codegen-gnu.m while 2008-10-24 08:42:52 +00:00
Driver Add -rewrite-macros test case. 2008-10-05 01:39:04 +00:00
Lexer Test case for previous commit (Workaround gcc bug causing crash on our 2008-09-05 03:23:51 +00:00
Misc fix bogus run line. 2008-08-18 19:54:48 +00:00
Parser "One" line fix for -parse-noop failure, "id" and several other things 2008-10-31 08:56:51 +00:00
Preprocessor Skip random pathname characters better. I had a 5 in mine. 2008-10-27 22:49:55 +00:00
Rewriter Tighten up blocks rewriter to handle casts and some other interesting cases. 2008-10-15 18:38:58 +00:00
Sema Fix PR3001: if we have an error parsing an initializer, make sure to remove 2008-11-03 09:28:22 +00:00
SemaCXX Initial, rudimentary implementation of operator overloading for binary 2008-11-06 23:29:22 +00:00
SemaObjC Fix <rdar://problem/6315646> clang on xcode: error: invalid operands to binary expression ('id<NSTableViewDelegate>' and 'XCExtendedArrayController *'). 2008-10-27 10:33:19 +00:00
SemaObjCXX Make it an error if an Objective-C declaration is not in the global scope. 2008-11-04 16:57:32 +00:00
Serialization Added "complex.c" (a copy of test/Codegen/complex.) to the serialization 2007-11-29 19:05:51 +00:00
Makefile Another attempt to make test/Makefile return correct error code. 2008-09-17 18:08:07 +00:00
TestRunner.sh Test commit. 2008-10-15 00:26:06 +00:00