mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-08 17:45:24 +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();
|
IASTName name = ((IASTLabelStatement)statement).getName();
|
||||||
IBinding binding = new CLabel( name );
|
IBinding binding = new CLabel( name );
|
||||||
try {
|
try {
|
||||||
((ICFunctionScope) binding.getScope()).addName( name );
|
IScope scope = binding.getScope();
|
||||||
|
if (scope instanceof ICFunctionScope)
|
||||||
|
((ICFunctionScope) binding.getScope()).addName( name );
|
||||||
} catch ( DOMException e ) {
|
} catch ( DOMException e ) {
|
||||||
}
|
}
|
||||||
return binding;
|
return binding;
|
||||||
|
@ -1128,6 +1130,7 @@ public class CVisitor {
|
||||||
scope = scope.getParent();
|
scope = scope.getParent();
|
||||||
} catch ( DOMException e ) {
|
} catch ( DOMException e ) {
|
||||||
scope = e.getProblem();
|
scope = e.getProblem();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue