[cfe-commits] [PATCH] Addition of color to -ast-dump

Richard Trieu rtrieu at google.com
Fri Jan 11 15:47:17 PST 2013


On Fri, Jan 11, 2013 at 3:35 PM, Richard Trieu <rtrieu at google.com> wrote:

> Add color highlighting to various parts of the -ast-dump output.  This
> will make reading and searching the -ast-dump for information easier.
>
> http://llvm-reviews.chandlerc.com/D291
>
> Files:
>   lib/AST/ASTDumper.cpp
>   include/clang/AST/Stmt.h
>   include/clang/AST/DeclBase.h
>

I've attached an example of the output.

Code:
int Test __attribute__((visibility("default")));

int main(int argc, char** argv) {
  int x __attribute__((aligned(4))) = 5;
  int y = 2;
  for (;;)
    if (x != y++)
      break;
  return (x * y);
}

There's no tests with this patch yet.  Once the layout is acceptable, I'll
just add new color tests to the existing -ast-dump tests.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130111/7132ee83/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ast-dump-color.png
Type: image/png
Size: 180516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130111/7132ee83/attachment.png>


More information about the cfe-commits mailing list