<div dir="ltr"><div class="gmail_default" style>On Fri, Jan 11, 2013 at 3:35 PM, Richard Trieu <span dir="ltr"><<a href="mailto:rtrieu@google.com" target="_blank">rtrieu@google.com</a>></span> wrote:<br></div><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Add color highlighting to various parts of the -ast-dump output. This will make reading and searching the -ast-dump for information easier.<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D291" target="_blank">http://llvm-reviews.chandlerc.com/D291</a><br>
<br>
Files:<br>
lib/AST/ASTDumper.cpp<br>
include/clang/AST/Stmt.h<br>
include/clang/AST/DeclBase.h<br>
</blockquote></div><br></div><div class="gmail_extra"><div class="gmail_default">I've attached an example of the output.</div><div class="gmail_default"><br></div><div class="gmail_default">Code:</div><div class="gmail_default">
<div class="gmail_default">int Test __attribute__((visibility("default")));</div><div class="gmail_default"><br></div><div class="gmail_default">int main(int argc, char** argv) {</div><div class="gmail_default">
int x __attribute__((aligned(4))) = 5;</div><div class="gmail_default"> int y = 2;</div><div class="gmail_default"> for (;;)</div><div class="gmail_default"> if (x != y++)</div><div class="gmail_default"> break;</div>
<div class="gmail_default"> return (x * y);</div><div class="gmail_default">}</div></div><div class="gmail_extra"><br></div><div class="gmail_extra" style>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.</div>
</div></div>