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 <cy.delaunay(a)gmail.com>
Ok, let's see :)
2010/1/25 Alexandre Bergel <alexandre(a)bergel.eu>
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
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.