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 » Developing U++ » U++ Developers corner » clangd
Re: clangd [message #57594 is a reply to message #57573] Mon, 04 October 2021 21:58 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1270
Registered: December 2006
Senior Contributor
mirek wrote on Thu, 30 September 2021 02:18
Novo wrote on Sat, 18 September 2021 13:46
mirek wrote on Fri, 17 September 2021 18:31

Needs BLITZ...

A catch: you have to add all used h-files to compile_commands.json explicitly.


If you send me compile_commands with h-files, I can fix that I think (I mean, add them during compile_commands generation).

Mirek

You can easily generate them by yourself. For example for umk:
umk uppsrc umk CLANG -j

In case this doesn't work for you I've attached one generated on my machine.


Regards,
Novo
Re: clangd [message #57595 is a reply to message #57594] Mon, 04 October 2021 23:18 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13464
Registered: November 2005
Ultimate Member
Novo wrote on Mon, 04 October 2021 21:58
mirek wrote on Thu, 30 September 2021 02:18
Novo wrote on Sat, 18 September 2021 13:46
mirek wrote on Fri, 17 September 2021 18:31

Needs BLITZ...

A catch: you have to add all used h-files to compile_commands.json explicitly.


If you send me compile_commands with h-files, I can fix that I think (I mean, add them during compile_commands generation).

Mirek

You can easily generate them by yourself. For example for umk:
umk uppsrc umk CLANG -j

In case this doesn't work for you I've attached one generated on my machine.


Then I do not understand "have to add explicitely"... Smile

Mirek
Re: clangd [message #57596 is a reply to message #57595] Mon, 04 October 2021 23:39 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1270
Registered: December 2006
Senior Contributor
mirek wrote on Mon, 04 October 2021 17:18
Novo wrote on Mon, 04 October 2021 21:58
mirek wrote on Thu, 30 September 2021 02:18
Novo wrote on Sat, 18 September 2021 13:46
mirek wrote on Fri, 17 September 2021 18:31

Needs BLITZ...

A catch: you have to add all used h-files to compile_commands.json explicitly.


If you send me compile_commands with h-files, I can fix that I think (I mean, add them during compile_commands generation).

Mirek

You can easily generate them by yourself. For example for umk:
umk uppsrc umk CLANG -j

In case this doesn't work for you I've attached one generated on my machine.


Then I do not understand "have to add explicitely"... Smile

Mirek

When you compile a cpp-project, you compile only cpp/c files. h-files are compiled implicitly via #include directive.
In case of compile_commands.json you need to add them to compile_commands explicitly.
Basically, you need to "compile" h-files as well.


Regards,
Novo
Re: clangd [message #57597 is a reply to message #57596] Tue, 05 October 2021 00:18 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13464
Registered: November 2005
Ultimate Member
Novo wrote on Mon, 04 October 2021 23:39
mirek wrote on Mon, 04 October 2021 17:18
Novo wrote on Mon, 04 October 2021 21:58
mirek wrote on Thu, 30 September 2021 02:18
Novo wrote on Sat, 18 September 2021 13:46
mirek wrote on Fri, 17 September 2021 18:31

Needs BLITZ...

A catch: you have to add all used h-files to compile_commands.json explicitly.


If you send me compile_commands with h-files, I can fix that I think (I mean, add them during compile_commands generation).

Mirek

You can easily generate them by yourself. For example for umk:
umk uppsrc umk CLANG -j

In case this doesn't work for you I've attached one generated on my machine.


Then I do not understand "have to add explicitely"... Smile

Mirek

When you compile a cpp-project, you compile only cpp/c files. h-files are compiled implicitly via #include directive.
In case of compile_commands.json you need to add them to compile_commands explicitly.
Basically, you need to "compile" h-files as well.


So I cannot generate them by umk only, right? I was wondering what you needed to add to make it work...

Mirek
Re: clangd [message #57598 is a reply to message #57597] Tue, 05 October 2021 06:24 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1270
Registered: December 2006
Senior Contributor
Sorry, I do not get your question.
My version of compile_commands.json works. It is not optimal because it doesn't use BLITZ.
Otherwise it is fine. Everything works.


Regards,
Novo

[Updated on: Thu, 14 October 2021 21:54]

Report message to a moderator

Re: clangd [message #57600 is a reply to message #57598] Tue, 05 October 2021 09:09 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13464
Registered: November 2005
Ultimate Member
Novo wrote on Tue, 05 October 2021 06:24
Sorry, I do not get your question.


Is the file you have sent me exactly the same as produced by umk or did you need to edit it to add header files to it?

Mirek
Re: clangd [message #57606 is a reply to message #57600] Tue, 05 October 2021 17:21 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1270
Registered: December 2006
Senior Contributor
mirek wrote on Tue, 05 October 2021 03:09
Novo wrote on Tue, 05 October 2021 06:24
Sorry, I do not get your question.


Is the file you have sent me exactly the same as produced by umk or did you need to edit it to add header files to it?

Mirek

Attached file is 100% automatically generated. I didn't alter it.


Regards,
Novo
Re: clangd [message #57607 is a reply to message #57606] Tue, 05 October 2021 17:54 Go to previous message
mirek is currently offline  mirek
Messages: 13464
Registered: November 2005
Ultimate Member
Novo wrote on Tue, 05 October 2021 17:21
mirek wrote on Tue, 05 October 2021 03:09
Novo wrote on Tue, 05 October 2021 06:24
Sorry, I do not get your question.


Is the file you have sent me exactly the same as produced by umk or did you need to edit it to add header files to it?

Mirek

Attached file is 100% automatically generated. I didn't alter it.


Smile it looks like some kind of really weird misunderstanding...
Previous Topic: method passed as parameter in function
Next Topic: Global Mouse
Goto Forum:
  


Current Time: Sun Dec 05 01:59:29 CET 2021

Total time taken to generate the page: 0.02263 seconds