Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] cmake support how to integrate the compile_commands.json parser into CDT

Hijacking Alexander's reply to address Jonah here: Sorry, lost Jonah's reply.

On Mon, 15 Jun 2020 at 14:54, 15 knots <fifteenknots505@xxxxxxxxx> wrote:
Am So., 14. Juni 2020 um 04:07 Uhr schrieb Jonah Graham <jonah@xxxxxxxxxxxxxxxx>:
Hi Martin,

On Sat, 13 Jun 2020 at 07:47, 15 knots <fifteenknots505@xxxxxxxxx> wrote:
Hi all,

I added some experimental integration in gerrit https://git.eclipse.org/r/#/c/164666/ mainly for testing so far.


I have been experimenting with the change. It looks promising in the correct direction. Some aspects don't just work, for example I am getting inconsistent indexing - i.e. sometimes index contains none of the includes. However I don't know if that is a core build problem, or something

Maybe, IScannerInfoProvider.subscribe(IResource, IScannerInfoChangeListener) is not implemented properly yet. If a new source file gets opened, everything looks like intended.
I could provide a sample eclipse project including cmake-scripts and minimalistic sources if you want.

I was trying out the new -> C/C++ Project -> CMake Project. While the header file (iostream) was found (i.e. ctrl-click worked) most of the time. Getting std and cout to not have error markers was a problem. The AST for iostream was giving parse error in the namespace std _GLIBCXX_VISIBILITY(default) somewhere, so the symbols were not being found.
 
Jonah, you're on the end user's perspective here.
Either my code has (gained) bugs or your project setup is causing the problems you experience.
A report on the compiler options and detected include path and macros as suggested in one of my previous email in this thread would be helpful. Unfortunately we just have the console output option ATM.


Back to the top