Login  Register

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

Posted by Alexandre Bergel on Jan 25, 2010; 1:26pm
URL: https://forum.world.st/Moose-dev-retrieve-Memory-class-in-CAnalyzer-tp1310788p1310801.html

I am not a FAMIX expert, but I would create class extensions on  
FAMIXNamedEntity and use properties to store the memory class.
Providing tests are key here, if we need to change the implementation  
later on.

Alexandre


On 25 Jan 2010, at 10: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 ?
>
> 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

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





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