[cfe-dev] some questions about index.h

Zhe Chen mr.zhechen at gmail.com
Thu Mar 15 19:12:08 PDT 2012


> On Mar 15, 2012, at 9:18 AM, Zhe Chen <mr.zhechen at gmail.com> wrote:
>
> Dear collegues,
>     I have some questions about index.h in clang-c.
> 1. why CINDEX_LINKAGE is defined? what is its role?
>
>
> This is needed for the library to build correctly on Windows.
>
> 2. Does somebody have a complete simple example to show the use of
> index.h in your own program?
>
>
> The c-index-test program is a good example of how the APIs can be used.

what is the relationship between clang/include/clang-c/index.h and
clang/tools/libclang ? just declaration and implementation? or something more?




More information about the cfe-dev mailing list