[cfe-dev] [patch] Support explicit C++ member operator syntax

James Porter porterj at alum.rit.edu
Sat Aug 29 20:37:50 PDT 2009


Attached is a patch to add support for explicitly referring to member 
operators in C++, e.g. x.operator++(). It supports both overloaded 
operators and conversion operators.

The patch also contains a fix in the same area of the code to eliminate 
a crash when compiling syntactically-incorrect code as part of a 
member-reference (e.g. x.int).  That crash was actually my fault anyway, 
since it came about from adding support for qualified-ids in class 
member access. If you think the fix should be a separate patch, let me 
know and I'll pull them apart.

There are also tests for both parts of the patch.

- Jim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: explicit-operators.patch
Type: text/x-patch
Size: 9836 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090829/340f8d03/attachment.bin>


More information about the cfe-dev mailing list