[cfe-dev] some questions about index.h
Ted Kremenek
kremenek at apple.com
Thu Mar 15 21:08:41 PDT 2012
On Mar 15, 2012, at 7:12 PM, Zhe Chen <mr.zhechen at gmail.com> wrote:
>> 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 ?
Index.h is the exported libclang API. It is named that way because libclang was originally intended as a library for doing source code indexing.
> just declaration and implementation?
That's it.
More information about the cfe-dev
mailing list