[cfe-dev] Theoretical question: Duff's device and AST

Eli Friedman eli.friedman at gmail.com
Sat Jul 19 15:31:18 PDT 2008


On Sat, Jul 19, 2008 at 2:23 PM, Jesper <wootest at gmail.com> wrote:
> The other day, a question started nagging me: How will clang represent
> weirdness like Duff's device[1] in AST form?

clang is well past the point of being able to compile something as
simple as Duff's device.  If you're interested in seeing what the AST
looks like for such construct, build a copy
(http://clang.llvm.org/get_started.html) and run clang -ast-dump over
the code.

-Eli



More information about the cfe-dev mailing list