Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » C/C++ Indexer, ignore defines?
C/C++ Indexer, ignore defines? [message #1314750] Fri, 25 April 2014 11:27 Go to next message
Eclipse UserFriend

Hi,

I have been using Eclipse for some time and I'm getting frustrated with the C/C++ Indexer. It will only index code that it thinks is relevant by following code paths which it thinks are defined.

Is it possible to make the Indexer more stupid? It is trying to be to smart. I want the Indexer to look at all the code not just what the Indexer deems as correct. Forget about #defines and #ifs.

Thanks,
Jens.
Re: C/C++ Indexer, ignore defines? [message #1324344 is a reply to message #1314750] Wed, 30 April 2014 14:49 Go to previous messageGo to next message
Eclipse UserFriend
if u have a section in one of source files:

#ifdef BLAH
some c/c++ code here
#endif

and Eclipse doesn't see BLAH defined, the section of code is not going to get indexed. A visual clue will be provided - the code block will be grayed-out.

If that's the issue you're facing, the fix is very easy - go to project properties and add the BLAH symbol under "General -> Path and Symbols -> Symbols". You will see the code block un-grayed.

Most real-life projects would have dozens of symbols defined in there, it is OK and doesn't take long to setup
Re: C/C++ Indexer, ignore defines? [message #1339176 is a reply to message #1324344] Wed, 07 May 2014 10:57 Go to previous message
Eclipse UserFriend
Programmist Setevik wrote on Wed, 30 April 2014 14:49
If that's the issue you're facing, the fix is very easy - go to project properties and add the BLAH symbol under "General -> Path and Symbols -> Symbols".

And what about branches with #if/#else/#elif?
Don't think it is possible in general case because different branches can require different tool chains.
Previous Topic:Local Build, Remote Run / Debug
Next Topic:srec file needed for OpenSDA
Goto Forum:
  


Current Time: Tue Oct 28 06:44:52 EDT 2025

Powered by FUDForum. Page generated in 0.03132 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top