This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270034 - Inconveniences when working with multiple specializations
Summary: Inconveniences when working with multiple specializations
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-09 11:38 UTC by Vladimir Kvashin
Modified: 2017-04-20 01:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Possible fix (11.87 KB, patch)
2017-04-02 19:58 UTC, Vladimir Kvashin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2017-03-09 11:38:54 UTC
Now the only way to get the list of template specializations is via annotations.
It's OK if there are 2, 3 or several specializations.
But some templates (e.g. ProgramStateTrait in clang) have 30-40 specialisations or even more.

If I need to review or change these, using annotations is very inconvenient.
So I now have to use grep with regexps instead of code model.

There should be support either in Find Usages or in Class Hierarchy.

I think the easiest way, which won't change UI and l10n, is via Class Hierarchy.

If a class is template and has specialisations, Class Hierarchy should show them in its tree (with a "T" green icon, like in the list that is available from annotations)
Comment 1 Vladimir Kvashin 2017-03-09 11:39:57 UTC
I think this should be included into the nearest patch: using IDE without this is extremely inconvenient.
Comment 2 Vladimir Kvashin 2017-04-02 19:58:04 UTC
Created attachment 164001 [details]
Possible fix
Comment 3 Vladimir Kvashin 2017-04-03 06:21:39 UTC
fixed, change set 090487d610f8 on enum
Comment 4 ilia 2017-04-13 11:06:13 UTC
https://netbeans.org/bugzilla/show_bug.cgi?id=270034 Changesets:
    http://hg.netbeans.org/releases/rev/e4caa01d719a # fixed #270034 - Inconveniences when working with multiple specializations
Comment 5 Quality Engineering 2017-04-20 01:48:11 UTC
Integrated into 'main-silver', will be available in build *201704200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d2ea9d3143ee
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #270034 - Inconveniences when working with multiple specializations
(transplanted from e4caa01d719a69a97f118d62d9e85ebd84c576df)