Login  Register

[Moose-dev] Re: retrieve 'Memory class' in CAnalyzer

Posted by Simon Denier-3 on Jan 25, 2010; 1:41pm
URL: https://forum.world.st/Moose-dev-retrieve-Memory-class-in-CAnalyzer-tp1310788p1310795.html


On 25 janv. 2010, at 14:11, Cyrille Delaunay wrote:

Memory Class apply on Function but also on variables. The common class for both type is FAMIXNamedEntity. Is it a good idea to define an instance variable 'memoryClass' in this class ?


Use the extension mechanism of MooseEntity for state.

See MooseEntity>>privateState and EntityState class



2010/1/25 Cyrille Delaunay <[hidden email]>
Ok, let's see :)

2010/1/25 Alexandre Bergel <[hidden email]>

Yes Cyrille, it would be great.
Do you want to give a try? Let us know when done. I will review the code.
Do not forget unit tests :-)

Cheers,
Alexandre


On 25 Jan 2010, at 06:19, Cyrille Delaunay wrote:

Hello,

A thing it would be cool to retrieve from C code for a function, is the thing called 'Memory class'. It is the word prefixing a function declaration:
- global
- local
- static
- extern
- register

I have looked at a xml file generated with srcml and a function is declared like that:
        <function><type><name>static</name> <name>void</name></type> ...

So it seems to be quite simple to retrieve, what do you think ?
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
 Simon




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev