libclang question

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.

-sergey

'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.

Thanks. This is what I was looking for.

-sergey