1
2
3
4
5
6 #include <sngcm/ast/Clone.hpp>
7 #include <sngcm/ast/Function.hpp>
8 #include <boost/uuid/nil_generator.hpp>
9
10 namespace sngcm { namespace ast {
11
12 CloneContext::CloneContext() : instantiateFunctionNode(false), instantiateClassNode(false), makeTestUnits(false)
13 {
14 }
15
16 CloneContext::~CloneContext()
17 {
18 for (FunctionNode* unitTestFunction : unitTestFunctions)
19 {
20 delete unitTestFunction;
21 }
22 }
23
24 void CloneContext::AddUnitTestFunction(FunctionNode* unitTestFunction)
25 {
26 unitTestFunctions.push_back(unitTestFunction);
27 }
28
29 std::std::vector<FunctionNode*>&CloneContext::UnitTestFunctions()
30 {
31 return unitTestFunctions;
32 }
33
34 } }