mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 18:56:02 +02:00
Array to pointer conversion for typedefs, bug 239931.
This commit is contained in:
parent
7f6536f4e0
commit
6848dd5f51
1 changed files with 4 additions and 1 deletions
|
@ -221,7 +221,10 @@ public class SemanticUtil {
|
|||
static IType getUltimateTypeViaTypedefs(IType type) {
|
||||
try {
|
||||
while(type instanceof ITypedef) {
|
||||
type= ((ITypedef)type).getType();
|
||||
IType t= ((ITypedef)type).getType();
|
||||
if (t == null)
|
||||
return type;
|
||||
type= t;
|
||||
}
|
||||
} catch(DOMException e) {
|
||||
type= e.getProblem();
|
||||
|
|
Loading…
Add table
Reference in a new issue