Thanks, committed in r128371 with a couple of style tweaks.<br><br><div class="gmail_quote">On Wed, Mar 16, 2011 at 6:58 PM, Richard Trieu <span dir="ltr"><<a href="mailto:rtrieu@google.com">rtrieu@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This patch adds flags to print or omit the include stacks of notes. These stacks are less helpful in notes than those in errors and warnings. Below is the current output on an error, and how it will show up when the include stack is disabled.<div>
<br></div><div>Current behavior:</div><div><br></div><div><div>test/test.cpp:9:10: error: no matching function for</div><div> call to 'foo'</div><div> return foo(1, 1);</div><div> ^~~</div><div>
In file included from test/test.cpp:7:</div><div>In file included from test/include7.h:1:</div>
<div>In file included from test/include6.h:1:</div><div>In file included from test/include5.h:1:</div><div>In file included from test/include4.h:1:</div><div>
In file included from test/include3.h:1:</div><div>In file included from test/include2.h:1:</div>
<div>include1.h:1:5: note: candidate function not viable: requires 1</div><div> argument, but 2 were provided</div><div>int foo(int x) { return x; }</div></div><div><br></div><div><br></div><div>With new flag to omit note include stacks:</div>
<div><br></div><div><div>test/test.cpp:9:10: error: no matching function for</div><div> call to 'foo'</div><div> return foo(1, 1);</div><div>
^~~</div><div>include1.h:1:5: note: candidate function not viable: requires 1</div><div> argument, but 2 were provided</div><div>int foo(int x) { return x; }</div></div>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br>