Make Type an enum class (C++11 ftw)

This commit is contained in:
Markus Hauschild
2013-06-01 16:22:01 +02:00
parent 4d805b34db
commit 6d2e40778c
10 changed files with 38 additions and 21 deletions

View File

@@ -9,17 +9,17 @@
class FunctionDefinition : public ASTElement {
public:
FunctionDefinition(Type *type, std::string name, ParameterList* params, StatementList* sl);
FunctionDefinition(Type type, std::string name, ParameterList* params, StatementList* sl);
virtual ~FunctionDefinition();
virtual void accept(ASTVisitor* visitor);
Type* getType();
Type getType();
std::string getName();
ParameterList* getParams();
StatementList* getSl();
private:
Type* type_;
Type type_;
std::string name_;
ParameterList* params_;
StatementList* sl_;