Review Request 116842: Added virtual override completion to kdev-clang

David Stevens dgedstevens at gmail.com
Wed Mar 19 19:11:08 UTC 2014



> On March 19, 2014, 6:34 a.m., Olivier Jean de Gaalon wrote:
> > codecompletion/context.cpp, line 289
> > <https://git.reviewboard.kde.org/r/116842/diff/2/?file=255285#file255285line289>
> >
> >     clang_getCursorType + clang_isConstQualifiedType doesn't work?

Just tried, doesn't work. That returns true for 'const T', but a const function isn't quite the same.


> On March 19, 2014, 6:34 a.m., Olivier Jean de Gaalon wrote:
> > codecompletion/context.cpp, line 211
> > <https://git.reviewboard.kde.org/r/116842/diff/2/?file=255285#file255285line211>
> >
> >     Are you sure this is necessary? What about clang_getSpecializedCursorTemplate?

No, that doesn't work. clang_getSpecializedCursorTemplate brings the cursor from an instantiation Foo<int> to the template Foo<T>.

It looks like new versions if libclang include a function clang_Type_getTemplateArgumentAsType, but that doesn't seemt to be available in libclang-3.4.


- David


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


On March 19, 2014, 7:11 p.m., David Stevens wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/116842/
> -----------------------------------------------------------
> 
> (Updated March 19, 2014, 7:11 p.m.)
> 
> 
> Review request for KDevelop.
> 
> 
> Repository: kdev-clang
> 
> 
> Description
> -------
> 
> Added virtual override completion to kdev-clang. Regular functions, template functions, and pure functions work. Signals and slots don't work, and const-qualified functions lose their qualifier. I'm not sure if the UI is completely correct.
> 
> 
> Diffs
> -----
> 
>   codecompletion/context.h aa6fcfb 
>   codecompletion/context.cpp f6e85d6 
> 
> Diff: https://git.reviewboard.kde.org/r/116842/diff/
> 
> 
> Testing
> -------
> 
> Manual testing.
> 
> 
> Thanks,
> 
> David Stevens
> 
>

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


More information about the KDevelop-devel mailing list