Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Indexer fails to index my .h (using #define/#undef)
Indexer fails to index my .h (using #define/#undef) [message #721029] Wed, 31 August 2011 18:12 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 5
Registered: August 2011
Junior Member
Hello,

Can someone can help me to setup Indexer so it works with that (uncommon) design template:

A .h file is loaded multiple time in the same .c++ , with some #define changing from one include to another.
Thus the .h file cannot be parsed alone; its valid ( even at synntax level) only when included within .h or .c++ with good #define set.

The #include and #define ( and macro) are very standard one.

it turns out that this configuration break the indexer, and that, thus, the .c++ is mark as bad a nearly all lines.

Anyone to help me on this big problem for me ?

Thanks in advance for your help

hptf


*********** the coding template use:

I got a .c++ file with that sort of code
(simplified pseudo code for comprehension)

class toto {
enum menum {
#define myenum
#include <toto.h>
#undef myenum
};
myenum ivmenum;
#define myfunction
#include <toto.h>
#undef myenum
}

the .h is like this
#ifdef myenum
a,b,c
#elsif define myfunction
void foo();
#endif



Re: Indexer fails to index my .h (using #define/#undef) [message #721288 is a reply to message #721029] Thu, 01 September 2011 11:09 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
There is ongoing work to fix this.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=197989


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:console for eclipse debugger
Next Topic:Hello world Console output
Goto Forum:
  


Current Time: Thu Apr 18 06:24:05 GMT 2024

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

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

Back to the top