Added initializers to the formal arguments.

This commit is contained in:
Roberto Raggi
2009-12-08 11:34:22 +01:00
parent d20cdc64e3
commit 5a0b7f8ec8
6 changed files with 32 additions and 9 deletions

View File

@@ -148,7 +148,9 @@ public:
void setType(const FullySpecifiedType &type);
bool hasInitializer() const;
void setInitializer(bool hasInitializer);
const StringLiteral *initializer() const;
void setInitializer(const StringLiteral *initializer);
// Symbol's interface
virtual FullySpecifiedType type() const;
@@ -164,7 +166,7 @@ protected:
private:
FullySpecifiedType _type;
bool _initializer: 1;
const StringLiteral *_initializer;
};
class CPLUSPLUS_EXPORT ScopedSymbol: public Symbol