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) {
|
} catch (DOMException e) {
|
||||||
throw new CoreException(Util.createStatus(e));
|
throw new CoreException(Util.createStatus(e));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -137,7 +136,7 @@ public class PDOMQualifierType extends PDOMNode implements IQualifierType, ICQua
|
||||||
IQualifierType pt = (IQualifierType) type;
|
IQualifierType pt = (IQualifierType) type;
|
||||||
try {
|
try {
|
||||||
boolean flagsMatch= isConst() == pt.isConst() && isVolatile() == pt.isVolatile();
|
boolean flagsMatch= isConst() == pt.isConst() && isVolatile() == pt.isVolatile();
|
||||||
if(flagsMatch && (type instanceof ICQualifierType))
|
if (flagsMatch && type instanceof ICQualifierType)
|
||||||
flagsMatch &= isRestrict() == ((ICQualifierType) type).isRestrict();
|
flagsMatch &= isRestrict() == ((ICQualifierType) type).isRestrict();
|
||||||
if (flagsMatch) {
|
if (flagsMatch) {
|
||||||
IType myType= getType();
|
IType myType= getType();
|
||||||
|
|
|
@ -146,7 +146,6 @@ public class PDOMCFunctionType extends PDOMNode implements IIndexType, IFunction
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public IType[] getParameterTypes() {
|
public IType[] getParameterTypes() {
|
||||||
final List<IType> result= new ArrayList<IType>();
|
final List<IType> result= new ArrayList<IType>();
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -92,9 +92,9 @@ class PDOMCPPClassInstance extends PDOMCPPClassSpecialization implements ICPPTem
|
||||||
|
|
||||||
// require a class instance
|
// require a class instance
|
||||||
if (type instanceof ICPPClassSpecialization == false ||
|
if (type instanceof ICPPClassSpecialization == false ||
|
||||||
type instanceof ICPPTemplateInstance == false || type instanceof IProblemBinding)
|
type instanceof ICPPTemplateInstance == false || type instanceof IProblemBinding) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
final ICPPClassSpecialization classSpec2 = (ICPPClassSpecialization) type;
|
final ICPPClassSpecialization classSpec2 = (ICPPClassSpecialization) type;
|
||||||
final ICPPClassType orig1= getSpecializedBinding();
|
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.cdt.internal.core.pdom.dom.PDOMNotImplementedError;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
class PDOMCPPReferenceType extends PDOMNode implements ICPPReferenceType,
|
class PDOMCPPReferenceType extends PDOMNode implements ICPPReferenceType, ITypeContainer, IIndexType {
|
||||||
ITypeContainer, IIndexType {
|
|
||||||
|
|
||||||
private static final int TYPE = PDOMNode.RECORD_SIZE + 0;
|
private static final int TYPE = PDOMNode.RECORD_SIZE + 0;
|
||||||
|
|
||||||
|
@ -72,7 +71,6 @@ class PDOMCPPReferenceType extends PDOMNode implements ICPPReferenceType,
|
||||||
return IIndexCPPBindingConstants.CPP_REFERENCE_TYPE;
|
return IIndexCPPBindingConstants.CPP_REFERENCE_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public IType getType() {
|
public IType getType() {
|
||||||
try {
|
try {
|
||||||
PDOMNode node = getLinkageImpl().getNode(pdom.getDB().getInt(record + TYPE));
|
PDOMNode node = getLinkageImpl().getNode(pdom.getDB().getInt(record + TYPE));
|
||||||
|
|
Loading…
Add table
Reference in a new issue