• Nikolai Kosjar's avatar
    CppEditor: Fix stack overflow in quick fixes · 323be40b
    Nikolai Kosjar authored
    The MoveDeclarationOutOfIf quick fix modified a IfStatementAST in case
    there were several such ASTs in interface->path(). The resulting AST was
    invalid (else_statement was pointing to 'this' afterwards), thus the
    afterwards executed PointerDeclarationFormatter (an ASTVisitor) was not
    able to finish his visit.
    The actual problem was that op->pattern in the match() calls was not
    Task-number: QTCREATORBUG-10919
    Change-Id: Ifbcac73e75690321ef45b6d8c2dc32fcea236efa
    Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
cppquickfixes.cpp 215 KB