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.

Man-pages help plugin also fixed to work with new default parser (Clang-based). Previous version doesn't show help context page for any code element.

This fix based on revision D3205 (kdevplatform).

Test Plan: Tested on master branch.

Reviewers: KDevelop, kfunk

Reviewed By: KDevelop, kfunk

Subscribers: kfunk, kdevelop-devel

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

Details

Committed
antonanikinNov 17 2016, 8:36 AM
Reviewer
KDevelop
Differential Revision
D3206: Fix context help for template data types
Parents
R32:2a734aff549e: Merge remote-tracking branch 'origin/5.0'
Branches
Unknown
Tags
Unknown