[cfe-commits] [PATCH][Borland] - enable some MS keywords which are shared with Borland extensions

Francois Pichet pichet2000 at gmail.com
Wed Sep 8 14:21:28 PDT 2010


Hi .. Are you planning to actually implement Microsoft extensions?
If so that's great but we should make sure not to duplicate work


Here is the tasks on my list:

1. flexible array member in union

example:
typedef struct _PROPERTYINSTEX
{
   WORD Length;
    union
   {
       BYTE Byte[];
       WORD Word[];
       DWORD Dword[];
       LARGE_INTEGER LargeInt[];
       SYSTEMTIME SysTime[];

   };
} PROPERTYINSTEX;


2. clang must parse this: (superfluous A::)
    class A {
        int A::f() { return 0; }
     };


3. microsoft enum support:
 -clang must parse this:
    enum FOO {
         a = (FOO) 3
     };
 - forward enum must have an underlying type. (int)
 - support enum FOO : int {};

4. MSVC Compiler Intrinsics
   ex: __noop


On Wed, Sep 8, 2010 at 5:07 PM,  <dawn at burble.org> wrote:
>
> There are several MS extensions supported by the Borland compiler.  This
> adds support for a few of those (with more soon to come).  Please review.
>
> Thanks,
> -Dawn
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>




More information about the cfe-commits mailing list