]> granicus.if.org Git - clang/commit
Add indents to AST dumping and removed parenthesis from AST nodes.
authorRichard Trieu <rtrieu@google.com>
Thu, 31 Jan 2013 01:44:26 +0000 (01:44 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 31 Jan 2013 01:44:26 +0000 (01:44 +0000)
commite8d411997899a87e1a9f63ad3f52b38e7931687c
tree7242cfadcebe8d22e854d5ea3aba9dce2a31028c
parent4ceaf337be78fa89b4a97f351be6d0bda962d7de
Add indents to AST dumping and removed parenthesis from AST nodes.
Indents were given the color blue when outputting with color.
AST dumping now looks like this:

Node
|-Node
| `-Node
`-Node
  `-Node

Compared to the previous:

(Node
  (Node
    (Node))
  (Node
    (Node)))

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174022 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTDumper.cpp
test/CodeGen/bitfield-2.c
test/Misc/ast-dump-attr.cpp
test/Misc/ast-dump-color.cpp
test/Misc/ast-dump-comment.cpp
test/Misc/ast-dump-decl.c
test/Misc/ast-dump-stmt.c
test/Misc/ast-dump-wchar.cpp
test/Sema/implicit-cast-dump.c
test/Tooling/clang-check-ast-dump.cpp
utils/TableGen/ClangAttrEmitter.cpp