glato / emerge

Emerge is a browser-based interactive codebase and dependency visualization tool for many different programming languages. It supports some basic code quality and graph metrics and provides a simple and intuitive way to explore and analyze a codebase by using graph structures.
MIT License
783 stars 46 forks source link

Compile_commands.json #18

Open ddavidebor opened 2 years ago

ddavidebor commented 2 years ago

Is your feature request related to a problem? Please describe. I'm having issue setting up Emerge to analyze Zephyr RTOS, a rather large C project.

Describe the solution you'd like I would like Emerge to be able to read compile_commands.json files, that contain a list of all C directories, files, and compiler arguments.

glato commented 2 years ago

@ddavidebor Thanks for filing this enhancement. I'd like to have a look at this in detail, but could you give me more details or point me to

  1. the project/ repository where you have the issue
  2. your current emerge configuration that you're using
  3. an example of a compile_commands.json file

so that I can better understand the issue/enhancement here?

Thanks a lot 👋.

ddavidebor commented 2 years ago

Hi @glato ,

The project is https://github.com/zephyrproject-rtos/zephyr and zephyr-based apps. As most Cmake projects, they generate this compile_commands.json:

compile_commands.json.zip

I fiddled with the example configs, but didn't keep any of the tests