[cfe-commits] [PATCH] Utilize the indents in -ast-dump to draw structural information

Richard Trieu rtrieu at google.com
Fri Jan 25 19:26:46 PST 2013


One screenshot of how indenting looks with color.
One text file with escape characters for viewing the colors on your
terminal.

Bikeshed away.


On Fri, Jan 25, 2013 at 7:23 PM, Richard Trieu <rtrieu at google.com> wrote:

>   This merges the color printing with indenting to show the final product.
>  This revision has no parens, and no extra leading space.
>
>   Regular blue is the color used for the tree information which contrasts
> to the bolded colors used for Stmts, Decls, Attrs, and Comments.  The bold
> nodes will stand out better while the light coloring of the tree hints at
> the structure without visually interfering.
>
> http://llvm-reviews.chandlerc.com/D281
>
> CHANGE SINCE LAST DIFF
>   http://llvm-reviews.chandlerc.com/D281?vs=761&id=771#toc
>
> Files:
>   lib/AST/ASTDumper.cpp
>   test/Misc/ast-dump-wchar.cpp
>   test/Misc/ast-dump-color.cpp
>   test/Misc/ast-dump-comment.cpp
>   test/Misc/ast-dump-decl.c
>   test/Misc/ast-dump-attr.cpp
>   test/Misc/ast-dump-stmt.c
>   test/CodeGen/bitfield-2.c
>   test/Tooling/clang-check-ast-dump.cpp
>   test/Sema/implicit-cast-dump.c
>   utils/TableGen/ClangAttrEmitter.cpp
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130125/258da7b4/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: color-indent.txt
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130125/258da7b4/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: color-indent.png
Type: image/png
Size: 135942 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130125/258da7b4/attachment.png>


More information about the cfe-commits mailing list