Hello Eric,

Yes the ternary ? works now, thanks.

I tried to load cedet-contrib-load.el and it fails on this last line
(load "contrib-loaddefs" nil t)

This contrib-loaddefs is nowhere in cedet directories.

I understand the copyright issues, however the author of cedet-contrib-load.el is no other than yourself :)

Thanks,
Vincent



On Sat, Apr 19, 2014 at 4:08 AM, Eric M. Ludlam <eric@siege-engine.com> wrote:
On 03/29/2014 01:11 PM, Vincent Semeria wrote:
Hello,

In the attached file which contains a simple c++ function,
1) run M-x semantic-calculate-scope    to get a context
2) run M-: (semantic-get-local-variables)

It fails to detect the last variable :
     const CSRMarketData& context = fx ? param : contextFx;

Hi Vincent,

Sorry for the delay.

The parser didn't support that ternary ? expression, so I added support and checked it into the CEDET repository with a new test.

Thanks



Another question not related, I couldn't manage to use semantic with C#.
When I open a C# file, (semantic-active-p) returns nil.

Is there some setup to do to activate C# in semantic ?

The C# support was contributed by someone who could not assign copyright, so it is in the "contrib" area.

You need to use the cedet-contrib-load.el file to load in those systems.   Unfortunately, they are not well supported.

Eric