forked from qt-creator/qt-creator
C++: Fix names of functions dealing with enclosing scopes
...in order to better tell apart the type related functions
isScope()/asScope() and the functions dealing with enclosing scopes:
* scope() --> enclosingScope()
* setScope() --> setEnclosingScope()
* resetScope() --> resetEnclosingScope()
Change-Id: Id743a7d1b6a1a1a0ffcd8568cbd8ebbdfc16eaa1
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
7
src/libs/3rdparty/cplusplus/Symbol.h
vendored
7
src/libs/3rdparty/cplusplus/Symbol.h
vendored
@@ -290,9 +290,8 @@ public:
|
||||
/// Returns the enclosing Block scope.
|
||||
Block *enclosingBlock() const;
|
||||
|
||||
Scope *scope() const;
|
||||
void setScope(Scope *enclosingScope); // ### make me private
|
||||
void resetScope(); // ### make me private
|
||||
void setEnclosingScope(Scope *enclosingScope); // ### make me private
|
||||
void resetEnclosingScope(); // ### make me private
|
||||
void setSourceLocation(unsigned sourceLocation, TranslationUnit *translationUnit); // ### make me private
|
||||
|
||||
void visitSymbol(SymbolVisitor *visitor);
|
||||
@@ -305,7 +304,7 @@ protected:
|
||||
|
||||
private:
|
||||
const Name *_name;
|
||||
Scope *_scope;
|
||||
Scope *_enclosingScope;
|
||||
Symbol *_next;
|
||||
const StringLiteral *_fileId;
|
||||
unsigned _sourceLocation;
|
||||
|
||||
Reference in New Issue
Block a user