I'm maintaining/developing a platform for homework testing. It's mostly automatic. What I need to add now is code analysis. I need to check the code for specific constructs.
For example:
Does the file
main.cpp
contain a class nameduser
with a const methodget_name()
?
Is there some tool out there that would allow me to do such stuff (ideal would be something that can be scripted). Linux only.
One possibility might be to run the code through GCC and use the GCC-XML extension to produce XML descriptions of the program's internal structure. You could then use your favourite XML library to parse the document, or apply an XSLT to it if all you need to do is display it as HTML or whatever.
You could probably hack together something that used the GCC-XML framework without too much difficulty.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With