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:
2
src/libs/3rdparty/cplusplus/Bind.cpp
vendored
2
src/libs/3rdparty/cplusplus/Bind.cpp
vendored
@@ -1862,7 +1862,7 @@ bool Bind::visit(SimpleDeclarationAST *ast)
|
||||
setDeclSpecifiers(decl, type);
|
||||
|
||||
if (Function *fun = decl->type()->asFunctionType()) {
|
||||
fun->setScope(_scope);
|
||||
fun->setEnclosingScope(_scope);
|
||||
fun->setSourceLocation(sourceLocation, translationUnit());
|
||||
|
||||
setDeclSpecifiers(fun, type);
|
||||
|
||||
Reference in New Issue
Block a user