[cfe-dev] Clang getting involved

Sean Silva silvas at purdue.edu
Sat Mar 8 10:13:27 PST 2014


On Thu, Mar 6, 2014 at 6:36 PM, Anton Bikineev <ant.bikineev at gmail.com>wrote:

> Hi all.
>
> I'm russian student from Moscow. I like C++ and
> I would like to contribute to Clang not as part
> of GSOC. I have already contributed to Boost.Math.
>
> I wanted to implement a static if declaration as
> an extension proposed by Herb Sutter, Andrei Alexandrescu
> and Walter Bright here
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3329.pdf


FYI Stroustrup shot that feature down pretty hard <
http://isocpp.org/blog/2013/03/n3613-static-if-considered>. It may not be
the best one to implement.

-- Sean Silva


>
>
> This feature is used in D language.
> But I don't know how it is relevant in Clang. Also I have
> just found some problems. For example, I don't know
> how better to represent it in AST: either as Decl or as Stmt.
> If (static if) is Stmt, it is easier to implement many things
> just using similar functions for if-statement.
>
> Maybe somebody has better ideas. I will be glad to any advices.
> Sorry for my English.
>
> Best regards,
> Anton.
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140308/31e702a6/attachment.html>


More information about the cfe-dev mailing list