Review Request: CPP: build switch context, give "case <cursor>" special completion

David Nolden david.nolden.kde at art-master.de
Tue Jul 5 11:49:50 UTC 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101671/#review4397
-----------------------------------------------------------



languages/cpp/codecompletion/context.cpp
<http://git.reviewboard.kde.org/r/101671/#comment3698>

    This needs a check if caseContext is still valid (may have been deleted while the locks were not held)



languages/cpp/codecompletion/context.cpp
<http://git.reviewboard.kde.org/r/101671/#comment3699>

    isValid() and (bool)abstractType() are redundant, the second is enough.


- David


On July 5, 2011, 5:53 a.m., Olivier Jean de Gaalon wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101671/
> -----------------------------------------------------------
> 
> (Updated July 5, 2011, 5:53 a.m.)
> 
> 
> Review request for KDevelop.
> 
> 
> Summary
> -------
> 
> Build a context for the switch AST.
> Add a new "case" parent context for cpp code completion to match the type of the switch's expression.
> Add test.
> 
> 
> This addresses bug 184185.
>     http://bugs.kde.org/show_bug.cgi?id=184185
> 
> 
> Diffs
> -----
> 
>   languages/cpp/codecompletion/context.h 08049b8 
>   languages/cpp/codecompletion/context.cpp c0d6841 
>   languages/cpp/cppduchain/contextbuilder.h 3ab9cdd 
>   languages/cpp/cppduchain/contextbuilder.cpp 76f5dff 
>   languages/cpp/tests/test_cppcodecompletion.h 7546f7e 
>   languages/cpp/tests/test_cppcodecompletion.cpp 6eb4257 
> 
> Diff: http://git.reviewboard.kde.org/r/101671/diff
> 
> 
> Testing
> -------
> 
> Usage, new test.
> 
> 
> Thanks,
> 
> Olivier Jean de
> 
>

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


More information about the KDevelop-devel mailing list