Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-core-dev] expanding macro definitions in functions

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 RochesterMark
> 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 Nabble.com.
> 
> _______________________________________________
> cdt-core-dev mailing list
> cdt-core-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-core-dev
> 


Back to the top