question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] generate compile_commands.json over the command line

See original GitHub issue

At the moment I am exporting compile_commands.json for a solution via Export Compilation Database button in visual studio.

Is there a way to do this over the command line?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
hero101111commented, Jul 5, 2021

Hi @FrancescElies

Good to hear that you got it working. I am now closing this issue. Thanks for reaching out to us and we hope you continue enjoying using Clang Power Tools.

Regards, Gabriel.

1reaction
FrancescEliescommented, Jun 21, 2021

I will Give it another try on Monday. Thanks for your help.

Update: couldn’t keep my promise. This week won’t be trying this. Hopefully next Monday.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generate compile_commands.json from msbuild via ...
I'm looking for a way to integrate clang-tidy into a CI workflow, but the build system being used is MSBuild with dependencies managed...
Read more >
How to generate compile_commands.json file? · Issue #1526
The command to run is something like node-gyp -- configure -f=gyp.generator.compile_commands_json , where the generator name should be a Python ...
Read more >
How do I use compile_commands.json · Issue #6592
It sounds like you want to leverage a multi-config build, based on the command line you specified above (which passes in the variant...
Read more >
scripts: add a tool to produce a compile_commands.json file
Many of these tools are based on LibTooling > (https://clang.llvm.org/docs/LibTooling.html), which depends on a > database of compiler flags.
Read more >
Makefile Tools December 2021 Update: Problem Matchers ...
A common compilation database format is compile_commands.json, which contains command objects, one for each translation unit in the project.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found