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:
parent
6fad7334f7
commit
159db54d69
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue