[cfe-dev] Adding New Data Type

Bill Walters daedalic at gmail.com
Sun Nov 6 15:22:53 PST 2011


I would like to add a heterogeneous tuple-like data structure for C++ that is
added to the built in types for clang.

So for example, the statement: CustomType<int, float, long> typeName;

...would create a class defined in place of that statement with the same
name given to it, such as:

class typeName
{
public:
    Method1 () {...};
    Method2 () {...};
    int v1;
    float v2;
    long v3;
};

What is the best way to tackle the addition of this type to clang?


--
View this message in context: http://clang-developers.42468.n3.nabble.com/Adding-New-Data-Type-tp3485512p3485512.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list