[cfe-dev] [PATCH] Add Microsoft's handling of exception specifications

Martin Vejnár avakar at ratatanek.cz
Tue Aug 24 02:18:36 PDT 2010


Hi,

I'm attaching a patch that adds an option -fms-except-spec that makes sema
treat exception specifications with at least one type-id as if the
exception specification was missing. In other words,

    void foo() throw(...);
    void foo() throw(std::bad_alloc);

will now parse without errors if -fms-except-spec is given. This in turn
makes it possible to parse sources that include Microsoft's <new> header.

I'm very new to clang, sorry if I've missed something. Best regards,
-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ms-except-spec.patch
Type: application/octet-stream
Size: 3173 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100824/ae9a14a8/attachment.obj>


More information about the cfe-dev mailing list