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

Francois Pichet pichet2000 at gmail.com
Wed Dec 29 14:32:25 PST 2010


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;
  };
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101229/f8522e9b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: direct-ctor-call.patch
Type: application/octet-stream
Size: 7013 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101229/f8522e9b/attachment.obj>


More information about the cfe-commits mailing list