Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Small "getting started" help needed.

> 2. The AST -- or at least the DOM visualized by the DOM viewer in the
>    debug tools -- reflects a DOM that has not been preprocessed. I see
>    why that is useful, but I need to extract an AST for the C code
>    proper. Can this be done within the given framework? Ideally, is
>    there a visualizer I can look at as a starting point for how to
>    get it?

The AST is built with properly preprocessing the source-code. E.g the
   #if 0
      int a;
will yield an empty IASTTranslationUnit.


Back to the top