compile_db 0.0.2

parse compile_commands.json


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

compile_db

compile_db is a library for reading and parsing compile_commands.json.

The standard for the format is here

Note

The code is not the prettiest but it works. Reversing a "string" to the original argument array is not the easiest when there are spaces, utf-8 characters such as arabic or chinese, deviations from how CLI arguments work 2021 because compilers are old etc.

Code cleanup, refactoring etc is welcome but try not to break the API too much or leave an easy to follow upgrade path because there are a significant amount of code depending on the current API.

Authors:
  • Joakim Brännström
Dependencies:
my
Versions:
0.0.2 2021-Aug-19
0.0.1 2021-Aug-19
~master 2021-Aug-19
Show all 3 versions
Download Stats:
  • 9 downloads today

  • 17 downloads this week

  • 70 downloads this month

  • 118 downloads total

Score:
1.2
Short URL:
compile_db.dub.pm