diff options
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Scope.h')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Scope.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/libs/3rdparty/cplusplus/Scope.h b/src/libs/3rdparty/cplusplus/Scope.h index c3b2a6ca37..8266e4c6fe 100644 --- a/src/libs/3rdparty/cplusplus/Scope.h +++ b/src/libs/3rdparty/cplusplus/Scope.h @@ -26,7 +26,7 @@ namespace CPlusPlus { -class CPLUSPLUS_EXPORT Scope: public Symbol +class CPLUSPLUS_EXPORT Scope : public Symbol { public: Scope(TranslationUnit *translationUnit, int sourceLocation, const Name *name); @@ -55,20 +55,20 @@ public: Symbol *find(const Identifier *id) const; Symbol *find(OperatorNameId::Kind operatorId) const; + Symbol *find(const ConversionNameId *conv) const; /// Set the start offset of the scope - int startOffset() const; - void setStartOffset(int offset); + int startOffset() const { return _startOffset; } + /// Set the start offset of the scope + void setStartOffset(int offset) { _startOffset = offset; } /// Set the end offset of the scope - int endOffset() const; - void setEndOffset(int offset); - - virtual const Scope *asScope() const - { return this; } + int endOffset() const { return _endOffset; } + /// Set the end offset of the scope + void setEndOffset(int offset) { _endOffset = offset; } - virtual Scope *asScope() - { return this; } + const Scope *asScope() const override { return this; } + Scope *asScope() override { return this; } private: SymbolTable *_members; |