diff options
Diffstat (limited to 'src/action.cpp')
-rw-r--r-- | src/action.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/action.cpp b/src/action.cpp index 23c24cd..8b10641 100644 --- a/src/action.cpp +++ b/src/action.cpp | |||
@@ -80,6 +80,31 @@ Action *Action::genDefaultClean() | |||
80 | return pRet; | 80 | return pRet; |
81 | } | 81 | } |
82 | 82 | ||
83 | Action *Action::genDefaultCleanAll() | ||
84 | { | ||
85 | Ast *pAst = new Ast(); | ||
86 | pAst->addNode( AstNode::typeActionDef ); | ||
87 | pAst->openBranch(); | ||
88 | pAst->addNode( AstNode::typeString, "clean-all" ); | ||
89 | pAst->openBranch(); | ||
90 | pAst->addNode( AstNode::typeProcessTarget ); | ||
91 | pAst->openBranch(); | ||
92 | pAst->addNode( AstNode::typeString, "clean" ); | ||
93 | pAst->openBranch(); | ||
94 | pAst->addNode( AstNode::typeFunction ); | ||
95 | pAst->openBranch(); | ||
96 | pAst->addNode( AstNode::typeString, "targets" ); | ||
97 | pAst->closeNode(); | ||
98 | pAst->closeNode(); | ||
99 | pAst->closeNode(); | ||
100 | Action *pRet = new Action( | ||
101 | dynamic_cast<const AstBranch *>( *pAst->getNodeBegin() ) | ||
102 | ); | ||
103 | pRet->pAst = pAst; | ||
104 | |||
105 | return pRet; | ||
106 | } | ||
107 | |||
83 | Action *Action::genDefaultDefault() | 108 | Action *Action::genDefaultDefault() |
84 | { | 109 | { |
85 | Ast *pAst = new Ast(); | 110 | Ast *pAst = new Ast(); |