Thanks. This is what I was looking for.<div><br></div><div>-sergey<br><br><div class="gmail_quote">On Thu, Nov 11, 2010 at 9:39 PM, Ted Kremenek <span dir="ltr"><<a href="mailto:kremenek@apple.com">kremenek@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">'c-index-test' is the swiss-army knife command line tool we use to test libclang.  It includes ways to test code completion, symbol traversal (indexing), etc.  You can see uses of it in test/Index, and the source is contained within a single .c file.<br>

<div class="im"><br>
On Nov 11, 2010, at 5:34 PM, Sergey Prigogin wrote:<br>
<br>
> Could please somebody point me to a code example that uses libclang interfaces. I'm primarily interested in parsing and obtaining diagnostic information rather than in indexing. I'm new to clang, so please excuse me if the example is in an obvious place I should have found it myself.<br>

><br>
> -sergey<br>
</div>> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@cs.uiuc.edu">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>
</blockquote></div><br></div>