hanchenye-llvm-project/clang/AST
Chris Lattner cbe4f77c9e add a new AST dumper interface (E->dump()). This dumps out
the AST in a structural, non-pretty, form useful for understanding
the AST.  It isn't quite done yet, but is already somewhat useful.

For this example:

int test(short X, long long Y) {
  return X < ((100));
}

we get (with -parse-ast-dump):

int test(short X, long long Y)
(CompoundStmt 0x2905ce0
  (ReturnStmt 0x2905cd0
    (BinaryOperator 0x2905cb0 '<'
      (ImplicitCastExpr 0x2905ca0
        (DeclRefExpr 0x2905c20 Decl='X' 0x2905bb0))
      (ParenExpr 0x2905c80
        (ParenExpr 0x2905c60
          (IntegerLiteral 0x2905c40 100))))))

llvm-svn: 40954
2007-08-08 22:51:59 +00:00
..
ASTContext.cpp Add comments to getTypeOfExpr/getTypeOfType. 2007-08-01 18:02:17 +00:00
Builtins.cpp Add support for __builtin_classify_type(). This builtin function isn't "public", however 2007-08-08 17:48:34 +00:00
Decl.cpp Fix "no newline at end of file" warnings. Patch contributed by 2007-07-12 15:43:07 +00:00
Expr.cpp Finish implementing __builtin_classify_type()... 2007-08-08 22:15:55 +00:00
Makefile Fix these to allow clang to be in any dir. 2006-10-26 04:56:55 +00:00
Stmt.cpp Finally bite the bullet and make the major change: split the clang namespace 2007-06-15 23:05:46 +00:00
StmtDumper.cpp add a new AST dumper interface (E->dump()). This dumps out 2007-08-08 22:51:59 +00:00
StmtPrinter.cpp add a new AST dumper interface (E->dump()). This dumps out 2007-08-08 22:51:59 +00:00
StmtVisitor.cpp Finally bite the bullet and make the major change: split the clang namespace 2007-06-15 23:05:46 +00:00
Type.cpp add a new AST dumper interface (E->dump()). This dumps out 2007-08-08 22:51:59 +00:00