[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cdt-dev] RE: expanding macro definitions in functions
- From: "Schorn, Markus" <Markus.Schorn@xxxxxxxxxxxxx>
- Date: Thu, 19 Jun 2008 14:26:51 +0200
- Delivered-to: firstname.lastname@example.org
- Thread-index: AcjSAVXsC9PoQ4xoR6Wx7gJUnBR5iwABa1yA
- Thread-topic: expanding macro definitions in functions
That's fine. Most likely you have the definition in a header file. If
the indexer does not consider the macro then most likely the indexer
cannot resolve your include directives, in which case you'd have to
configure your include search path.
You might be using an old CDT version.
If you cannot make this work, !please! create a small project to
demonstrate the issue and attach it to a bug-report on bugzilla.
> -----Original Message-----
> From: mreede01@xxxxxxxxxx [mailto:mreede01@xxxxxxxxxx]
> Sent: Thursday, June 19, 2008 1:41 PM
> To: Schorn, Markus
> Subject: RE: expanding macro definitions in functions
> We are using a #define. I'm not sure if that makes a difference
> #define COMMA_MY_DEC , _MY_DEC
> portal on behalf of Markus Schorn wrote:
> > Hi Mark,
> > the indexer can handle macros like that. Most likely the macro
> > definition is not provided correctly, it must not contain the
> > double-quotes.
> > If there is an issue other than that, please create a bugzilla and
> > attach a small sample project demonstrating the issue,
> > Markus.
> >> -----Original Message-----
> >> From: cdt-core-dev-bounces@xxxxxxxxxxx
> >> [mailto:cdt-core-dev-bounces@xxxxxxxxxxx] On Behalf Of
> >> Sent: Wednesday, June 18, 2008 9:59 PM
> >> To: cdt-core-dev@xxxxxxxxxxx
> >> Subject: [cdt-core-dev] expanding macro definitions in functions
> >> Importance: Low
> >> My failure is around our use of a macro (COMMA_MY_DEC) in our
> >> functions / function decelerations.
> >> COMMA_MY_DEC = ", _MY_DEC"
> >> The problem I see is the IDE needs to see the "," that is
> hidden in
> >> the macro. Is there any way to have the IDE do expansion of the
> >> macro? Around 80% of our code uses this method. The
> resulting problem
> >> is that the functions are not recognized by the indexer and do not
> >> show up in the C/C++ index. Also folding does not recognize the
> >> functions.
> >> Char my_impl::GetInfo(
> >> int applicationValue,
> >> const myConst1,
> >> const myConst2
> >> COMMA_MY_DEC ) << Can this be expanded?
> >> Thanks Mark
> >> --
> >> View this message in context:
> >> http://www.nabble.com/expanding-macro-definitions-in-functions
> > -tp17989102p17989102.html
> >> Sent from the Eclipse CDT - core mailing list archive at
> >> _______________________________________________
> >> cdt-core-dev mailing list
> >> cdt-core-dev@xxxxxxxxxxx
> >> https://dev.eclipse.org/mailman/listinfo/cdt-core-dev
> > _______________________________________________
> > cdt-core-dev mailing list
> > cdt-core-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-core-dev
> Quoted from: