mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixes CompositeCPPTemplateScope.getParent().
This commit is contained in:
parent
5f53601812
commit
c8d02717aa
1 changed files with 6 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Andrew Ferguson (Symbian) - Initial implementation
|
* Andrew Ferguson (Symbian) - Initial implementation
|
||||||
|
* Markus Schorn (Wind River Systems)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.core.index.composite.cpp;
|
package org.eclipse.cdt.internal.core.index.composite.cpp;
|
||||||
|
|
||||||
|
@ -54,6 +55,9 @@ public class CompositeCPPTemplateScope extends CompositeScope implements ICPPTem
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IIndexScope getParent() {
|
public IIndexScope getParent() {
|
||||||
return (IIndexScope) rbinding;
|
// the binding is the binding for both the composite and the template scope, so
|
||||||
|
// make sure to use the parent of the scope.
|
||||||
|
final IIndexScope templateScope= rbinding.getScope();
|
||||||
|
return cf.getCompositeScope(templateScope.getParent());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue