mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Added more detailed error messages.
This commit is contained in:
parent
1e1afcf3ce
commit
c24990c2ad
1 changed files with 5 additions and 4 deletions
|
@ -96,7 +96,7 @@ class PDOMCPPClassTemplatePartialSpecialization extends PDOMCPPClassTemplate
|
||||||
try {
|
try {
|
||||||
return new PDOMCPPClassTemplate(getLinkage(), getDB().getRecPtr(record + PRIMARY));
|
return new PDOMCPPClassTemplate(getLinkage(), getDB().getRecPtr(record + PRIMARY));
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
CCorePlugin.log(e);
|
CCorePlugin.log("Failed to load primary template for " + getName(), e); //$NON-NLS-1$
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -118,7 +118,7 @@ class PDOMCPPClassTemplatePartialSpecialization extends PDOMCPPClassTemplate
|
||||||
final long rec= getPDOM().getDB().getRecPtr(record + ARGUMENTS);
|
final long rec= getPDOM().getDB().getRecPtr(record + ARGUMENTS);
|
||||||
return PDOMCPPArgumentList.getArguments(this, rec);
|
return PDOMCPPArgumentList.getArguments(this, rec);
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
CCorePlugin.log(e);
|
CCorePlugin.log("Failed to load template arguments for " + getName(), e); //$NON-NLS-1$
|
||||||
return ICPPTemplateArgument.EMPTY_ARGUMENTS;
|
return ICPPTemplateArgument.EMPTY_ARGUMENTS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -140,10 +140,11 @@ class PDOMCPPClassTemplatePartialSpecialization extends PDOMCPPClassTemplate
|
||||||
int otherSM = otherSpec.getSignatureHash();
|
int otherSM = otherSpec.getSignatureHash();
|
||||||
return mySM == otherSM ? 0 : mySM < otherSM ? -1 : 1;
|
return mySM == otherSM ? 0 : mySM < otherSM ? -1 : 1;
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
CCorePlugin.log(e);
|
CCorePlugin.log("Comparison failure for " + getName(), e); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
assert false;
|
assert false;
|
||||||
|
CCorePlugin.log(new AssertionError("Assertion failure for " + getName())); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return cmp;
|
return cmp;
|
||||||
|
@ -166,7 +167,7 @@ class PDOMCPPClassTemplatePartialSpecialization extends PDOMCPPClassTemplate
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
final ICPPClassTemplatePartialSpecialization rhs = (ICPPClassTemplatePartialSpecialization)type;
|
final ICPPClassTemplatePartialSpecialization rhs = (ICPPClassTemplatePartialSpecialization) type;
|
||||||
return CPPClassTemplatePartialSpecialization.isSamePartialClassSpecialization(this, rhs);
|
return CPPClassTemplatePartialSpecialization.isSamePartialClassSpecialization(this, rhs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue