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:
4
src/libs/3rdparty/cplusplus/Scope.cpp
vendored
4
src/libs/3rdparty/cplusplus/Scope.cpp
vendored
@@ -109,7 +109,7 @@ SymbolTable::~SymbolTable()
|
||||
|
||||
void SymbolTable::enterSymbol(Symbol *symbol)
|
||||
{
|
||||
CPP_ASSERT(! symbol->_scope || symbol->enclosingScope() == _owner, return);
|
||||
CPP_ASSERT(! symbol->_enclosingScope || symbol->enclosingScope() == _owner, return);
|
||||
|
||||
if (++_symbolCount == _allocatedSymbols) {
|
||||
_allocatedSymbols <<= 1;
|
||||
@@ -120,7 +120,7 @@ void SymbolTable::enterSymbol(Symbol *symbol)
|
||||
}
|
||||
|
||||
symbol->_index = _symbolCount;
|
||||
symbol->_scope = _owner;
|
||||
symbol->_enclosingScope = _owner;
|
||||
_symbols[_symbolCount] = symbol;
|
||||
|
||||
if (_symbolCount * 5 >= _hashSize * 3)
|
||||
|
||||
Reference in New Issue
Block a user