diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-03-30 15:35:42 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-03-30 15:35:42 +0200 |
commit | 289714b7dc847db29772705ea82d5aa28d5613bd (patch) | |
tree | 473ed9f3125b6f4e74d687c1ef7af31b6ed6f11c /src/shared/cplusplus/Symbols.h | |
parent | 65e3017edf5c0c4349441325346b0b08b082aece (diff) |
Cleanup
Diffstat (limited to 'src/shared/cplusplus/Symbols.h')
-rw-r--r-- | src/shared/cplusplus/Symbols.h | 70 |
1 files changed, 22 insertions, 48 deletions
diff --git a/src/shared/cplusplus/Symbols.h b/src/shared/cplusplus/Symbols.h index 039e3542e5..2ea24c539a 100644 --- a/src/shared/cplusplus/Symbols.h +++ b/src/shared/cplusplus/Symbols.h @@ -581,8 +581,6 @@ protected: virtual void visitSymbol0(SymbolVisitor *visitor); virtual void accept0(TypeVisitor *visitor); virtual bool matchType0(const Type *otherType, TypeMatcher *matcher) const; - -private: }; class CPLUSPLUS_EXPORT ObjCProtocol: public ScopedSymbol, public Type @@ -591,14 +589,9 @@ public: ObjCProtocol(TranslationUnit *translationUnit, unsigned sourceLocation, const Name *name); virtual ~ObjCProtocol(); - unsigned protocolCount() const - { return _protocols.size(); } - - ObjCBaseProtocol *protocolAt(unsigned index) const - { return _protocols.at(index); } - - void addProtocol(ObjCBaseProtocol *protocol) - { _protocols.push_back(protocol); } + unsigned protocolCount() const; + ObjCBaseProtocol *protocolAt(unsigned index) const; + void addProtocol(ObjCBaseProtocol *protocol); // Symbol's interface virtual FullySpecifiedType type() const; @@ -663,26 +656,19 @@ public: ObjCClass(TranslationUnit *translationUnit, unsigned sourceLocation, const Name *name); virtual ~ObjCClass(); - bool isInterface() const { return _isInterface; } - void setInterface(bool isInterface) { _isInterface = isInterface; } - - bool isCategory() const { return _categoryName != 0; } - const Name *categoryName() const { return _categoryName; } - void setCategoryName(const Name *categoryName) { _categoryName = categoryName; } + bool isInterface() const; + void setInterface(bool isInterface); - ObjCBaseClass *baseClass() const - { return _baseClass; } - void setBaseClass(ObjCBaseClass *baseClass) - { _baseClass = baseClass; } + bool isCategory() const; + const Name *categoryName() const; + void setCategoryName(const Name *categoryName); - unsigned protocolCount() const - { return _protocols.size(); } + ObjCBaseClass *baseClass() const; + void setBaseClass(ObjCBaseClass *baseClass); - ObjCBaseProtocol *protocolAt(unsigned index) const - { return _protocols.at(index); } - - void addProtocol(ObjCBaseProtocol *protocol) - { _protocols.push_back(protocol); } + unsigned protocolCount() const; + ObjCBaseProtocol *protocolAt(unsigned index) const; + void addProtocol(ObjCBaseProtocol *protocol); // Symbol's interface virtual FullySpecifiedType type() const; @@ -795,32 +781,20 @@ public: const Name *name); virtual ~ObjCPropertyDeclaration(); - bool hasAttribute(int attribute) const - { return _propertyAttributes & attribute; } - - void setAttributes(int attributes) - { _propertyAttributes = attributes; } - - bool hasGetter() const - { return hasAttribute(Getter); } + bool hasAttribute(int attribute) const; + void setAttributes(int attributes); - bool hasSetter() const - { return hasAttribute(Setter); } + bool hasGetter() const; + bool hasSetter() const; - const Name *getterName() const - { return _getterName; } + const Name *getterName() const; - void setGetterName(const Name *getterName) - { _getterName = getterName; } + void setGetterName(const Name *getterName); - const Name *setterName() const - { return _setterName; } + const Name *setterName() const; + void setSetterName(const Name *setterName); - void setSetterName(const Name *setterName) - { _setterName = setterName; } - - void setType(const FullySpecifiedType &type) - { _type = type; } + void setType(const FullySpecifiedType &type); // Symbol's interface virtual FullySpecifiedType type() const; |