[cfe-commits] [PATCH] libclang support for CompilationDatabase + python binding

Arnaud de Grandmaison arnaud.allarddegrandmaison at parrot.com
Fri Jun 29 08:07:26 PDT 2012


Thanks Ted,

I committed (r159382), factoring Index.h

I attached the updated patches for adding CompilationDatabase support to
libclang + python.

The libclang patch builds on the above factoring, with no other
modification. The python patch is unmodified with respect to previous
reviews.

Cheers,

-- 
Arnaud de Grandmaison


On 06/28/2012 06:38 AM, Ted Kremenek wrote:
> I think the CompilationDatabase feature would be a great addition to libclang.  As you suggest, factoring out Index.h into separate header files (with Index.h including them for backwards compatibility) and having a new one for Tooling support sounds reasonable to me.
>
> Sent from my iPad
>
> On Jun 26, 2012, at 2:53 AM, Arnaud de Grandmaison <arnaud.allarddegrandmaison at parrot.com> wrote:
>
>> Ping
>>
>> CC Doug per Chandler's suggestion on irc.
>>
>> Basically, the question is : how do we want to handle the Tooling stuff
>> with libclang ?
>> Should it be part of Index.h ? Should it even be part of libclang ?
>>
>> For now, my patch assumes this is completely part of libclang.
>>
>> My feeling is it should at least be logically separated, with its own
>> header files, with some splitting of Index.h to expose some components
>> (like CXString) without the complete Index.h.
>>
>> Any directions ?
>>
>> Cheers,
>> --
>>
>> Arnaud de Grandmaison
>>
>>
>>
>> On 06/22/2012 02:48 PM, Arnaud de Grandmaison wrote:
>>> Attached are 2 patches :
>>> - 0001-cindex-cdb.patch : adds support for CompilationDatabase to libclang
>>> - 0002-cindex-cdb-python.patch : teaches the python binding to use the
>>> functionality added by the first patch
>>>
>>> Those 2 patches have already been reviewed by Manuel Klimek and Gregory
>>> Szorc, for the C / C++ / python parts.
>>>
>>> The only point left is regarding the location of the code, as the first
>>> patch adds some functionality which is orthogonal to cindex. Should it
>>> live within cindex (as it is in the patch) or should we separate it ?
>>> Can someone knowledgeable with the libclang requirements have a look at it ?
>>>
>>> Cheers,
>>>
>>
>> -- 
>> Arnaud de Grandmaison
>>
>> <0001-cindex-cdb.patch>
>> <0002-cindex-cdb-python.patch>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libclang-add-CompilationDatabase-support.patch
Type: text/x-patch
Size: 16048 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120629/69c19205/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-clang.py-add-CompilationDatabase-support.patch
Type: text/x-patch
Size: 11289 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120629/69c19205/attachment-0001.bin>


More information about the cfe-commits mailing list