forked from qt-creator/qt-creator
C++: Introduce PointerDeclarationFormatter
For a given AST, CppRefactoringFile and Overview this will create a ChangeSet for rewriting the pointer or reference declaration according to the Overview. Task-number: QTCREATORBUG-6169 Change-Id: If6f824c1ea5e9f53a11a58ec8b6d696d01f0723e Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
7
src/libs/3rdparty/cplusplus/Bind.cpp
vendored
7
src/libs/3rdparty/cplusplus/Bind.cpp
vendored
@@ -181,6 +181,13 @@ void Bind::operator()(DeclarationAST *ast, Scope *scope)
|
||||
(void) switchScope(previousScope);
|
||||
}
|
||||
|
||||
void Bind::operator()(StatementAST *ast, Scope *scope)
|
||||
{
|
||||
Scope *previousScope = switchScope(scope);
|
||||
statement(ast);
|
||||
(void) switchScope(previousScope);
|
||||
}
|
||||
|
||||
FullySpecifiedType Bind::operator()(ExpressionAST *ast, Scope *scope)
|
||||
{
|
||||
Scope *previousScope = switchScope(scope);
|
||||
|
||||
Reference in New Issue
Block a user