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

Matthieu Monrocq matthieu.monrocq at gmail.com
Sat Jan 26 05:54:51 PST 2013


On Sat, Jan 26, 2013 at 4:26 AM, Richard Trieu <rtrieu at google.com> wrote:

> One screenshot of how indenting looks with color.
> One text file with escape characters for viewing the colors on your
> terminal.
>
> Bikeshed away.
>
>
> This looks really nice! The indent are clean, picking out the variable
names is easy, the structure is clear. I am looking forward to using this
on real code.

-- Matthieu


> 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
>>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130126/9ecb7bff/attachment.html>


More information about the cfe-commits mailing list