Fix context help for template data types

Authored by antonanikin on Nov 17 2016, 8:36 AM.

Description

Fix context help for template data types

Summary:
This patch fixes broken code-context help for template data types. Old version has buggy behavior:

  1. Place following code to some source file:
#include <cmath>
#include <math.h>
#include <vector>
#include <QList>

void test()
{
    QList<int> l;
    l.append(1);

    double x = std::sin(1);
    double y = sin(1);
    std::vector<int> v;
}
  1. Place cursor to any function or templated type and call "Show Documentation" from context menu. Help page is NOT shown.

This behavior caused by wrong usage of documentation Url - we pass full qualified type (with template information like QList<...>), but documentation has topics only for plain data type like QList.

Test Plan: Tested on master branch with patched KDevelop plugings for Qt- and man- pages help.

Reviewers: kfunk, KDevelop

Reviewed By: kfunk, KDevelop

Subscribers: kfunk, kdevelop-devel

Differential Revision: https://phabricator.kde.org/D3205

Details

Committed
antonanikinNov 17 2016, 8:36 AM
Reviewer
KDevelop
Differential Revision
D3205: Fix context help for template data types
Parents
R32:9675e393ebe7: Fix problems tooltip
Branches
Unknown
Tags
Unknown