[cfe-commits] [PATCH][MS][Review request] - Direct constructor call

Francois Pichet pichet2000 at gmail.com
Sat Jan 15 16:31:24 PST 2011


On Wed, Dec 29, 2010 at 5:32 PM, Francois Pichet <pichet2000 at gmail.com> wrote:
> Hi
> This patch adds support for direct constructor calls in -fms-extensions
> mode.
> Why? Because msvc supports it!
> I found clang couldn't parse such kind of code found in msvc header files:
> class CtorCall {
> public:
>   CtorCall& CtorCall::operator=(const CtorCall& that)
>   {
>       if (this != &that) {
>           this->CtorCall::~CtorCall();
>           this->CtorCall::CtorCall(that);  // <=== direct ctor call, clang
> error.
>       }
>       return *this;
>   };
>
>

ping?




More information about the cfe-commits mailing list