The compilation database Swiss army knife
compdb is a command line tool to manipulates compilation databases. A compilation database is a database for compile options, it has records of which compile options are used to build the files in a project. An example of compilation database is the JSON Compilation Database
compdb aims to make it easier for you to run tools on your codebase by spoon-feeding you the right compile options.
compdb is not so much about generating the initial compilation database, this, is left to other tools, such as cmake and ninja. It is only a glue between the initial compilation database and your tool.
With the proliferation of Clang-based tools, it has become apparent that the compile options are no longer useful uniquely to the compiler.
Based on this evidence, compdb came to life. A tool that has knowledge of the compile options and can share it both to inform the text editor and to run clang based tool from the shell.
(TODO) Install with pip:
pip install compdb
pip install git+https://github.com/Sarcasm/compdb.git#egg=compdb
>From Github, as user:
pip install --user git+https://github.com/Sarcasm/compdb.git#egg=compdb
python setup.py install
Running the tests
To run the tests, type:
Contributions are always welcome!
Try to be consistent with the actual code, it will ease the review.
This project is licensed under the MIT License. See LICENSE.txt for details.
- repo: for its ubiquitous command line interface, which served as an inspiration
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size compdb-0.0.1-py2.py3-none-any.whl (12.0 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size compdb-0.0.1.tar.gz (10.0 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for compdb-0.0.1-py2.py3-none-any.whl