<div>Hi Daniel,<div><br></div><div>Sorry, I've been busy with my main project and didn't follow the list for some time.</div><div><br></div><div>The progress information example was probably not a good one since it is indeed structured and better handled differently. However, I want to use diagnostics to return unstructured information. My use case is the same as you described. I want to output various information from the driver program of my translator and was thinking of using Diagnostics instead of writing to stderr for this.</div>
<div><br></div><div>Best regards,</div><div>Victor</div><div><br></div><div class="gmail_quote">2009/11/22 Daniel Dunbar <span dir="ltr"><<a href="mailto:daniel@zuster.org" target="_blank">daniel@zuster.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Victor,<br>
<br>
Can you explain a bit more about what you want to do with this?<br>
<br>
If you want to return structured information (e.g., progress<br>
information), I'm not sure adding another diagnostic level is the<br>
right approach, since it is too generic and clients won't necessarily<br>
know how to deal with it (from an API level). If it is unstructured,<br>
then we need to clarify what the level means w.r.t. the existing<br>
levels.<br>
<br>
The reason I ask is that the driver has some similar issues where it<br>
currently dumps information to stderr (-v, -print-search-dirs, etc).<br>
In theory, I'd like to not have this buried in the Driver library but<br>
let the client have control over it, but I haven't decided how I want<br>
to do this (the obvious approaches are to extend Diagnostics, or use<br>
special diagnostic classes for it, or alternately use a different<br>
callback mechanism).<br>
<br>
- Daniel<br>
<br>
On Fri, Nov 20, 2009 at 1:11 AM, Victor Zverovich<br>
<div><<a href="mailto:victor.zverovich@googlemail.com" target="_blank">victor.zverovich@googlemail.com</a>> wrote:<br>
</div><div><div></div><div>> I am actively using the clang's Basic library in my project and in<br>
> particular its diagnostic part which is great.<br>
> However it has the following limitation: it is not possible to report an<br>
> "informational" message which is neither warning nor error through it. While<br>
> clang doesn't need this functionality it may be useful for other users (me<br>
> being one of them :)) without any overhead for clang. The attached patch<br>
> introduces the Info diagnostic level.<br>
> Thanks,<br>
> Victor<br>
><br>
</div></div><div><div></div><div>> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>