Review Request 124598: Extract variable refactoring
Maciej Poleski
d82ks8djf82msd83hf8sc02lqb5gh5 at gmail.com
Mon Aug 3 12:59:50 UTC 2015
> On Sie 3, 2015, 2:01 po poĊudniu, Kevin Funk wrote:
> > refactoring/extractvariablerefactoring.cpp, line 98
> > <https://git.reviewboard.kde.org/r/124598/diff/1/?file=389509#file389509line98>
> >
> > Do you make sure the members have been initialized here? I.e. `nodeInCpndStmt` was true in the ctor run?
It's a mistake I noticed after posting this review. Code (BFS) _should_ always succeed, but it should be checked anyway "just in case".
- Maciej
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124598/#review83377
-----------------------------------------------------------
On Sie 3, 2015, 12:40 rano, Maciej Poleski wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/124598/
> -----------------------------------------------------------
>
> (Updated Sie 3, 2015, 12:40 rano)
>
>
> Review request for KDevelop.
>
>
> Repository: kdev-clang
>
>
> Description
> -------
>
> 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)
>
>
> Diffs
> -----
>
> refactoring/CMakeLists.txt PRE-CREATION
> refactoring/extractvariablerefactoring.h PRE-CREATION
> refactoring/extractvariablerefactoring.cpp PRE-CREATION
> refactoring/refactoringmanager.cpp PRE-CREATION
>
> Diff: https://git.reviewboard.kde.org/r/124598/diff/
>
>
> Testing
> -------
>
> 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)
> ```
>
>
> Thanks,
>
> Maciej Poleski
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20150803/17d0a080/attachment-0001.html>
More information about the KDevelop-devel
mailing list