On 03/29/2014 01:11 PM, Vincent Semeria wrote:Hi Vincent,
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;
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.
ThanksThe C# support was contributed by someone who could not assign copyright, so it is in the "contrib" area.
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 ?
You need to use the cedet-contrib-load.el file to load in those systems. Unfortunately, they are not well supported.