mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
Bug 339780 - Source hover for specialization of specialization does not work
This commit is contained in:
parent
d2b90dc584
commit
18cae2a524
1 changed files with 7 additions and 4 deletions
|
@ -218,11 +218,14 @@ public class CSourceHover extends AbstractCEditorTextHover {
|
|||
|
||||
// in case the binding is a non-explicit specialization we need
|
||||
// to consider the original binding (bug 281396)
|
||||
if (names.length == 0 && binding instanceof ICPPSpecialization) {
|
||||
binding= ((ICPPSpecialization) binding).getSpecializedBinding();
|
||||
if (!(binding instanceof IProblemBinding)) {
|
||||
names= findDefsOrDecls(ast, binding);
|
||||
while (names.length == 0 && binding instanceof ICPPSpecialization) {
|
||||
IBinding specializedBinding = ((ICPPSpecialization) binding).getSpecializedBinding();
|
||||
if (specializedBinding == null || specializedBinding instanceof IProblemBinding) {
|
||||
break;
|
||||
}
|
||||
|
||||
names = findDefsOrDecls(ast, specializedBinding);
|
||||
binding = specializedBinding;
|
||||
}
|
||||
if (names.length > 0) {
|
||||
for (IName name : names) {
|
||||
|
|
Loading…
Add table
Reference in a new issue