1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Fixes to let the Linux kernel index.

This commit is contained in:
Doug Schaefer 2006-05-19 04:31:22 +00:00
parent 6fad7334f7
commit 159db54d69

View file

@ -531,7 +531,9 @@ public class CVisitor {
IASTName name = ((IASTLabelStatement)statement).getName();
IBinding binding = new CLabel( name );
try {
((ICFunctionScope) binding.getScope()).addName( name );
IScope scope = binding.getScope();
if (scope instanceof ICFunctionScope)
((ICFunctionScope) binding.getScope()).addName( name );
} catch ( DOMException e ) {
}
return binding;
@ -1128,6 +1130,7 @@ public class CVisitor {
scope = scope.getParent();
} catch ( DOMException e ) {
scope = e.getProblem();
break;
}
}
}