Review Request 115770: fix the expression visitor

Matija Skala mskala at gmx.com
Sun Feb 16 14:30:23 UTC 2014



> On Feb. 16, 2014, 11:28 a.m., Sven Brauch wrote:
> > duchain/expressionvisitor.cpp, line 74
> > <https://git.reviewboard.kde.org/r/115770/diff/1-2/?file=244304#file244304line74>
> >
> >     In fact -- sorry for not looking at this closely the first time -- why not just
> >     
> >     for ( const auto& item: node->partSequence ) {
> >       QString ident = ...(item.element->...);
> >       id.push(...)
> >     }
> >     ?
> >     
> >     But doesn't matter much of course ;)

foreach doesn't work with this kind of list. There's no begin() and end() in ListNode.


- Matija


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/115770/#review49896
-----------------------------------------------------------


On Feb. 16, 2014, 3:37 a.m., Matija Skala wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/115770/
> -----------------------------------------------------------
> 
> (Updated Feb. 16, 2014, 3:37 a.m.)
> 
> 
> Review request for KDevelop.
> 
> 
> Repository: kdev-java
> 
> 
> Description
> -------
> 
> Expression visitor should not inherit from the context builder
> and should not visit the whole compilation unit.
> 
> This commit fixes the problem with variable colors.
> 
> 
> Diffs
> -----
> 
>   duchain/abstractexpressionvisitor.h a590096 
>   duchain/expressionvisitor.h 652a2cd 
>   duchain/expressionvisitor.cpp 95b660f 
>   duchain/usebuilder.h 48e591d 
>   duchain/usebuilder.cpp 527e813 
> 
> Diff: https://git.reviewboard.kde.org/r/115770/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Matija Skala
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20140216/012f73e8/attachment.html>


More information about the KDevelop-devel mailing list