Hi Kondal,
When you press F3 and it will point you to function declaration, then you then press F3 on the declaration again, it doesn’t open the definition?
I’m using the managed build so the CDT has all the information about the project, there are unmanaged projects as well, which are makefile based, that’s what you are using? And just generate the
makfile from cmake?
Anton
From: cdt-dev <cdt-dev-bounces@xxxxxxxxxxx>
On Behalf Of Kondal Kolipaka
Sent: Wednesday, March 10, 2021 3:25 AM
To: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Subject: [cdt-dev] Eclipse CDT CMake - accessing function defintions
EXTERNAL EMAIL:
Do not click links or open attachments unless you know the content is safe
Hi All,
Could you someone help me in understanding how does Eclipse CDT works in accessing the function definitions.
I am using CMake editor with our own toolchains, I am able to build without any error and I could see compiler_commands.json is getting generated with all the required arguments(-I, -D, -iquote)
However, when I click on the function from the editor, I was not able to navigate to the function definition. Only function declarations are accessible using F3 or click
Do we need to do anything specific to achieve this? Any pointers to troubleshoot this problem.
Please find the generated parser log file.