1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Cosmetics

Change-Id: I51c0b2d876c48c30564177fc2c1323bc7eee1409
This commit is contained in:
Sergey Prigogin 2017-01-10 11:13:44 -08:00 committed by Gerrit Code Review @ Eclipse.org
parent aa0d656ab7
commit df4a39d0a2
2 changed files with 7 additions and 8 deletions

View file

@ -19,7 +19,7 @@ public interface IPointerType extends IType {
/**
* Returns the type that this is a pointer to.
*/
public IType getType();
public IType getType();
/**
* Returns whether the pointer is const qualified.

View file

@ -25,7 +25,7 @@ import org.eclipse.cdt.internal.core.dom.parser.ITypeMarshalBuffer;
import org.eclipse.core.runtime.CoreException;
/**
* Models pointer to members.
* Models pointer to a composite type member.
*/
public class CPPPointerToMemberType extends CPPPointerType implements ICPPPointerToMemberType {
private ICPPASTPointerToMember operator;
@ -40,9 +40,10 @@ public class CPPPointerToMemberType extends CPPPointerType implements ICPPPointe
this.operator = operator;
}
public CPPPointerToMemberType(IType type, IType thisType, boolean isConst, boolean isVolatile, boolean isRestrict) {
public CPPPointerToMemberType(IType type, IType classType, boolean isConst, boolean isVolatile,
boolean isRestrict) {
super(type, isConst, isVolatile, isRestrict);
this.classType = thisType;
this.classType = classType;
}
@Override
@ -65,9 +66,6 @@ public class CPPPointerToMemberType extends CPPPointerType implements ICPPPointe
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.cpp.ICPPPointerToMemberType#getMemberOfClass()
*/
@Override
public IType getMemberOfClass() {
if (classType == null) {
@ -92,7 +90,8 @@ public class CPPPointerToMemberType extends CPPPointerType implements ICPPPointe
if (binding instanceof IType) {
classType = (IType) binding;
} else {
classType = new CPPClassType.CPPClassTypeProblem(nameSpec, IProblemBinding.SEMANTIC_INVALID_TYPE, nameSpec.toCharArray());
classType = new CPPClassType.CPPClassTypeProblem(nameSpec, IProblemBinding.SEMANTIC_INVALID_TYPE,
nameSpec.toCharArray());
}
}
return classType;