This patch fixes broken code-context help for template data types. Old version has buggy behavior:
- 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; }
- 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).