Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - C++ Folding does not recognize multi line function definition: (6 Items)
   
C++ Folding does not recognize multi line function definition  
C++ folding will not recognize the following multi line function definition. Can this be fixed?

Mark

Char my_impl::GetChecksum(
   int applicationValue,
   const myConst1,
   const myConst2,
   envDec )
Re: C++ Folding does not recognize multi line function definition  
Please check you include path to make sure that internal parser can 
recognize this method, does this function is shown in outline view?


Mark reeder wrote:
> C++ folding will not recognize the following multi line function definition. Can this be fixed?
>
> Mark
>
> Char my_impl::GetChecksum(
>    int applicationValue,
>    const myConst1,
>    const myConst2,
>    envDec )
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post9299
>
>   
Re: C++ Folding does not recognize multi line function definition  
The failure is around our use of a macro (COMMA_MY_DEC) in our files.

COMMA_MY_DEC = ", _MY_DEC"

The problem 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 ? 


Char my_impl::GetChecksum(
   int applicationValue,
   const myConst1,
   const myConst2
   COMMA_MY_DEC )
Re: C++ Folding does not recognize multi line function definition  
You can ask in CDT forum (Editors part we take unmodified from CDT 
eclipse project).
I don't think folding expands macro definitions, if it does and you 
can't see it means it cannot find include.
Include path have to be specified independently from build setting for 
internal parser.

Mark reeder wrote:
> The failure is around our use of a macro (COMMA_MY_DEC) in our files.
>
> COMMA_MY_DEC = ", _MY_DEC"
>
> The problem 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 ? 
>
>
> Char my_impl::GetChecksum(
>    int applicationValue,
>    const myConst1,
>    const myConst2
>    COMMA_MY_DEC )
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post9352
>
>   
Re: C++ Folding does not recognize multi line function definition  
I will post an update when I get information from the CDT forum
Re: C++ Folding does not recognize multi line function definition  
They pretty much said the same, you need to configure include path or 
define this macro in project properties for internal parser.
Btw what project type are you using and what version of IDE?
IDE 4.5 using CDT 4.0.3 which is older version, this may be fixed in 
newer version CDT 5.0 but we don't have integrate it with Momentics IDE yet.

Mark reeder wrote:
> I will post an update when I get information from the CDT forum
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post9400
>
>