Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Patch for umk: create compile_commands.json file
Patch for umk: create compile_commands.json file [message #53774] Wed, 29 April 2020 20:23 Go to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
Patch is against git rev. 4c9a6f5
Attached archive includes already patched files and a patch itself.

What it is for: this patch adds option -j to umk, which generates compile_commands.json (Compilation Database) next to a project file.

What Compilation Database is for: https://sarcasm.github.io/notes/dev/compilation-database.htm l
Basically, it allows to use clang tools like below.

clang-check
clang-doc
clang-include-fixer
clang-rename
clang-tidy
clangd

I personally use it with ccls. And I tested it with ccls.

UPDATE: I've changed attached file.
  • Attachment: uppsrc.zip
    (Size: 26.77KB, Downloaded 182 times)


Regards,
Novo

[Updated on: Wed, 29 April 2020 21:16]

Report message to a moderator

Re: Patch for umk: create compile_commands.json file [message #53777 is a reply to message #53774] Wed, 29 April 2020 21:10 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I am all for it, but after the release, ok? Please remind me.
Re: Patch for umk: create compile_commands.json file [message #53778 is a reply to message #53777] Wed, 29 April 2020 21:16 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
I'm fine with that.
I'm using an altered version of umk anyway.


Regards,
Novo
Re: Patch for umk: create compile_commands.json file [message #57184 is a reply to message #53774] Sun, 06 June 2021 13:01 Go to previous messageGo to next message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
Hi,

Is this feature available in current master.
Quote:

What it is for: this patch adds option -j to umk, which generates compile_commands.json (Compilation Database) next to a project file.



Warm Regards

Deepak
Re: Patch for umk: create compile_commands.json file [message #57187 is a reply to message #57184] Mon, 07 June 2021 00:32 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
deep wrote on Sun, 06 June 2021 07:01
Hi,

Is this feature available in current master.
Quote:

What it is for: this patch adds option -j to umk, which generates compile_commands.json (Compilation Database) next to a project file.


I do not think so. If you use Linux, I can post here a binary for Ubuntu, which is compiled about a year ago.
I use it myself.



Regards,
Novo
Re: Patch for umk: create compile_commands.json file [message #57192 is a reply to message #53774] Mon, 07 June 2021 17:09 Go to previous messageGo to next message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
Hi Novo,

Thanks for your patch. I compiled from source and using git commit version you have given.


Warm Regards

Deepak
Re: Patch for umk: create compile_commands.json file [message #57193 is a reply to message #57192] Tue, 08 June 2021 09:57 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hello,

Since latest release is done : why not include it now in trunk ?
Re: Patch for umk: create compile_commands.json file [message #57198 is a reply to message #57193] Tue, 08 June 2021 23:59 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Applied; the patch was a bit stale (my mistake) and needed a bit of hammering to compile, so please check!
Re: Patch for umk: create compile_commands.json file [message #57199 is a reply to message #57198] Wed, 09 June 2021 06:41 Go to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
mirek wrote on Tue, 08 June 2021 17:59
Applied; the patch was a bit stale (my mistake) and needed a bit of hammering to compile, so please check!

It works for me.
Thanks a lot!


Regards,
Novo
Previous Topic: Keyboard shortcuts conflict
Next Topic: The grid seems nonsense in layout designer
Goto Forum:
  


Current Time: Thu Apr 18 03:06:07 CEST 2024

Total time taken to generate the page: 0.01889 seconds