[cfe-dev] CompilationDatabase support added to libclang and python binding
Arnaud de Grandmaison
arnaud.allarddegrandmaison at parrot.com
Tue Jun 12 00:28:50 PDT 2012
Hi Manuel and Gregory,
Here are the patches for a second round of review. I took into account
most of
your suggestions, if not all.
Here are the changes with respect to the previous set of patches.
Regarding cindex:
- Index.h : declaration order changed to be more reader friendly
- CompilationDb moved to CompilationDatabase
- the clang_tooling_ prefix is kept for now, expressing this
functionality comes
from a different module. We may want to move it into another header
then Index.h
to even better express this. Which name should it have ? Tooling.h is
already
in use. Beside the logical isolation, do we want a physical one, i.e.
have a
separate library for tooling C interface ?
- the naming convention is now using consistently
clang_tooling_<thing>_<action>
- i have not yet added the other available ways of loading a database.
This can
probably be done later on, on demand
- i have not yet added higher level helpers like
clang_tooling_CompileCommand_getCmdLine. This should come latter,
depending
on actual needs and uses.
Regarding the python binding:
- space added after comma for the arguments of function calls
- method summary now on one line, when it is small enough to fit in 80
columns.
- properties name have been changed to noun
- yield used instead of iterator for CompileCommand
- CompileCommands is no longer a hidden object.
- CompilationDb moved to CompilationDatabase
- from_result method used for checking CompilationDatabase &
CompileCommands
- test_cdb.py : comparisons are now done using lists
Cheers,
--
Arnaud de Grandmaison
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cindex-cdb.patch
Type: text/x-patch
Size: 12962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120612/efbaf471/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-cindex-cdb-python.patch
Type: text/x-patch
Size: 8469 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120612/efbaf471/attachment-0001.bin>
More information about the cfe-dev
mailing list