mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Code formatting.
This commit is contained in:
parent
b3f4a2c33c
commit
0581a953b4
4 changed files with 25 additions and 29 deletions
|
@ -74,7 +74,6 @@ public class PDOMQualifierType extends PDOMNode implements IQualifierType, ICQua
|
|||
} catch (DOMException e) {
|
||||
throw new CoreException(Util.createStatus(e));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -137,7 +136,7 @@ public class PDOMQualifierType extends PDOMNode implements IQualifierType, ICQua
|
|||
IQualifierType pt = (IQualifierType) type;
|
||||
try {
|
||||
boolean flagsMatch= isConst() == pt.isConst() && isVolatile() == pt.isVolatile();
|
||||
if(flagsMatch && (type instanceof ICQualifierType))
|
||||
if (flagsMatch && type instanceof ICQualifierType)
|
||||
flagsMatch &= isRestrict() == ((ICQualifierType) type).isRestrict();
|
||||
if (flagsMatch) {
|
||||
IType myType= getType();
|
||||
|
|
|
@ -146,7 +146,6 @@ public class PDOMCFunctionType extends PDOMNode implements IIndexType, IFunction
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
public IType[] getParameterTypes() {
|
||||
final List<IType> result= new ArrayList<IType>();
|
||||
try {
|
||||
|
|
|
@ -92,9 +92,9 @@ class PDOMCPPClassInstance extends PDOMCPPClassSpecialization implements ICPPTem
|
|||
|
||||
// require a class instance
|
||||
if (type instanceof ICPPClassSpecialization == false ||
|
||||
type instanceof ICPPTemplateInstance == false || type instanceof IProblemBinding)
|
||||
type instanceof ICPPTemplateInstance == false || type instanceof IProblemBinding) {
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
final ICPPClassSpecialization classSpec2 = (ICPPClassSpecialization) type;
|
||||
final ICPPClassType orig1= getSpecializedBinding();
|
||||
|
|
|
@ -30,8 +30,7 @@ import org.eclipse.cdt.internal.core.pdom.dom.PDOMNode;
|
|||
import org.eclipse.cdt.internal.core.pdom.dom.PDOMNotImplementedError;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
|
||||
class PDOMCPPReferenceType extends PDOMNode implements ICPPReferenceType,
|
||||
ITypeContainer, IIndexType {
|
||||
class PDOMCPPReferenceType extends PDOMNode implements ICPPReferenceType, ITypeContainer, IIndexType {
|
||||
|
||||
private static final int TYPE = PDOMNode.RECORD_SIZE + 0;
|
||||
|
||||
|
@ -72,7 +71,6 @@ class PDOMCPPReferenceType extends PDOMNode implements ICPPReferenceType,
|
|||
return IIndexCPPBindingConstants.CPP_REFERENCE_TYPE;
|
||||
}
|
||||
|
||||
|
||||
public IType getType() {
|
||||
try {
|
||||
PDOMNode node = getLinkageImpl().getNode(pdom.getDB().getInt(record + TYPE));
|
||||
|
|
Loading…
Add table
Reference in a new issue