Skip to content
Snippets Groups Projects
Commit 9ff5676e authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Introduced FullySpecifiedType::copySpecifiers()

parent 4f9efcba
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,10 @@ FullySpecifiedType FullySpecifiedType::qualifiedType() const ...@@ -80,6 +80,10 @@ FullySpecifiedType FullySpecifiedType::qualifiedType() const
ty.setExtern(false); ty.setExtern(false);
ty.setMutable(false); ty.setMutable(false);
ty.setTypedef(false); ty.setTypedef(false);
ty.setInline(false);
ty.setVirtual(false);
ty.setExplicit(false);
return ty; return ty;
} }
...@@ -209,4 +213,19 @@ FullySpecifiedType FullySpecifiedType::simplified() const ...@@ -209,4 +213,19 @@ FullySpecifiedType FullySpecifiedType::simplified() const
return *this; return *this;
} }
void FullySpecifiedType::copySpecifiers(const FullySpecifiedType &type)
{
// class storage specifiers
f._isFriend = type.f._isFriend;
f._isRegister = type.f._isRegister;
f._isStatic = type.f._isStatic;
f._isExtern = type.f._isExtern;
f._isMutable = type.f._isMutable;
f._isTypedef = type.f._isTypedef;
// function specifiers
f._isInline = type.f._isInline;
f._isVirtual = type.f._isVirtual;
f._isExplicit = type.f._isExplicit;
}
...@@ -121,6 +121,8 @@ public: ...@@ -121,6 +121,8 @@ public:
FullySpecifiedType simplified() const; FullySpecifiedType simplified() const;
void copySpecifiers(const FullySpecifiedType &type);
private: private:
Type *_type; Type *_type;
struct Flags { struct Flags {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment