[cfe-dev] constructor notation for vector types

Jochen Wilhelmy j.wilhelmy at arcor.de
Wed Oct 14 14:31:09 PDT 2009


Hi!

I'm new to clang and want to use it as an embedded language.
I'd like to add constructor notation to vector types that I
can write int4(1,2,3,4) instead of (int4)(1,2,3,4).
This is to have it more cg/hlsl-style or even compile existing
parts of cg/hlsl programs.
At first it's ok if it only works in c++ mode and therefore
I have to start at ActOnCXXTypeConstructExpr.
Can you give me any hints how to approach this?

Thanks & with kind regards,
Jochen




More information about the cfe-dev mailing list