Review Request 126889: Patch to remove/implement "TODO"
Milian Wolff
mail at milianw.de
Tue Jan 26 12:56:00 UTC 2016
> On Jan. 26, 2016, 12:16 p.m., Milian Wolff wrote:
> > languages/clang/codecompletion/completionhelper.cpp, line 60
> > <https://git.reviewboard.kde.org/r/126889/diff/1/?file=441632#file441632line60>
> >
> > This function should be moved to util/clangutils.h and a unit test should be added as well. Could you do that please?
>
> Pedro Ferreira wrote:
> Hi Milian,
> Sorry, this is the very first time I do changes in KDevelop. I have no idea how to do that! Could you possibly give me an idea on how to add the tests?
Sure, no problem: Just look at `tests/test_clangutils.{cpp,h}`. I think you could copy and adapt `TestClangUtils::testGetScope` with its `_data` companion.
- Milian
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126889/#review91610
-----------------------------------------------------------
On Jan. 26, 2016, 10:35 a.m., Pedro Ferreira wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126889/
> -----------------------------------------------------------
>
> (Updated Jan. 26, 2016, 10:35 a.m.)
>
>
> Review request for KDevelop.
>
>
> Repository: kdevelop
>
>
> Description
> -------
>
> This drops a TODO message and inserts a compile-time selector between clang-based template argument parsing and what appears to be manual tokenisation.
>
>
> Diffs
> -----
>
> languages/clang/codecompletion/completionhelper.cpp c01185a
> languages/clang/util/clangutils.h e47058e
> languages/clang/util/clangutils.cpp 81f7b44
>
> Diff: https://git.reviewboard.kde.org/r/126889/diff/
>
>
> Testing
> -------
>
> This is possibly incomplete. It works for me (I'm using a KDev built with this), but would obviously appreciate comments.
> Mind you, the include header in Clang for this function ("clang_Type_getTemplateArgumentAsType") says that this function does not support variadic templates, so potentially this patch is not acceptable.
>
>
> Thanks,
>
> Pedro Ferreira
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20160126/38ec4236/attachment-0001.html>
More information about the KDevelop-devel
mailing list