Review Request 124598: Extract variable refactoring

Maciej Poleski d82ks8djf82msd83hf8sc02lqb5gh5 at
Sun Aug 2 22:40:34 UTC 2015

This is an automatically generated e-mail. To reply, visit:

Review request for KDevelop.

Repository: kdev-clang


Extract variable refactoring

Select some expression, right click, [Extract variable], type name of new variable to create, enjoy

This is "local refactoring" - RefactoringContext is not used in `invoke` (thus it is fast)


  refactoring/CMakeLists.txt PRE-CREATION 
  refactoring/extractvariablerefactoring.h PRE-CREATION 
  refactoring/extractvariablerefactoring.cpp PRE-CREATION 
  refactoring/refactoringmanager.cpp PRE-CREATION 



Manual testing. Still unsure how to cleanly inject precise source locations:
run(const std::string &filenameExpression,
    const std::string &expression,
    const std::string &filenameVariablePlacement,
    const std::string &variableType,
    const std::string &variableName,
    const unsigned offsetExpression,
    const unsigned lengthExpression,
    const unsigned offsetVariablePlacement)


Maciej Poleski

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KDevelop-devel mailing list