Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Indexer vs source templates
Indexer vs source templates [message #1090049] Mon, 19 August 2013 12:39
Eclipse UserFriend
Hi,

I've come across sources that use templates like this:

File src.c:
#include "superclass.h"

#define CLASS MyClass
#define SUPER SuperClass

#include "src_templ.c"

void MyClass::myfunc(void)
{
    ...
}


File src_tmpl.c:
class CLASS : public SUPER
{
...
public:
  void myfunc(void);
}


Currently, everything except for the preprocessor statements is marked as a syntax error. I guess, I'd first have to convince the indexer to understand this kind of construct. What am I supposed to do?

Thanks,
Malte
Previous Topic:Questions about indexing time
Next Topic:Issue with Running C++ - Launch Failed. Binary Not Found
Goto Forum:
  


Current Time: Sat May 17 06:18:53 EDT 2025

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

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

Back to the top