Added checks that used types are correctly declared previously.

This commit is contained in:
2016-05-31 13:50:30 +02:00
parent 85da5024ea
commit 1395b62e60
3 changed files with 32 additions and 0 deletions

View File

@@ -35,15 +35,20 @@ class Type
const std::string &name() const;
const std::vector<const Type *> &parentTypes() const;
bool isDeclared() const;
private:
Type(std::string name);
void setDirty(bool isDirty = true);
bool isDirty() const;
void setDeclared();
void addParentType(const Type &parentType);
bool m_isDirty;
bool m_isDeclared;
std::string m_name;