[cfe-commits] [Patch] Bug in Sema::CreateOverloadedBinOp

Douglas Gregor dgregor at apple.com
Wed Aug 26 10:10:20 PDT 2009


On Aug 26, 2009, at 3:09 AM, Sylvere Teissier wrote:

> Little bug corrected for C++ binary operation with implicit conversion
> (for example char[] -> char*).

Thanks! Committed here:

	http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090824/020659.html

> I'm not expert with clang but I'm surprised that more advanced
> containers are not used instead of old C style (pointer,size) pair.


The advantage of the pointer/size style is that we aren't tied to  
using a particular container. Often, we call the same routine from a  
parser (which has a SmallVector) and with information stored directly  
in the AST (just a pointer + size to reduce overhead), so we need a  
common, efficient representation. Pointer + size does that.

	- Doug



More information about the cfe-commits mailing list