mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Cosmetics.
This commit is contained in:
parent
3bfe2d21a7
commit
33b70bb10c
3 changed files with 3 additions and 18 deletions
|
@ -21,12 +21,12 @@ import org.eclipse.cdt.core.dom.ast.IPointerType;
|
||||||
*/
|
*/
|
||||||
public interface ICPPFunctionType extends IFunctionType {
|
public interface ICPPFunctionType extends IFunctionType {
|
||||||
/**
|
/**
|
||||||
* Returns <code>true</code> for a constant method
|
* Returns {@code true} for a constant method.
|
||||||
*/
|
*/
|
||||||
public boolean isConst();
|
public boolean isConst();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns <code>true</code> for a volatile method
|
* Returns {@code true} for a volatile method.
|
||||||
*/
|
*/
|
||||||
public boolean isVolatile();
|
public boolean isVolatile();
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ public class CPPFunctionType implements ICPPFunctionType, ISerializableType {
|
||||||
|
|
||||||
IType[] fps;
|
IType[] fps;
|
||||||
fps = ft.getParameterTypes();
|
fps = ft.getParameterTypes();
|
||||||
//constructors & destructors have null return type
|
// Constructors & destructors have null return type.
|
||||||
if ((returnType == null) ^ (ft.getReturnType() == null))
|
if ((returnType == null) ^ (ft.getReturnType() == null))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -81,17 +81,11 @@ public class CPPFunctionType implements ICPPFunctionType, ISerializableType {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IFunctionType#getReturnType()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IType getReturnType() {
|
public IType getReturnType() {
|
||||||
return returnType;
|
return returnType;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IFunctionType#getParameterTypes()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IType[] getParameterTypes() {
|
public IType[] getParameterTypes() {
|
||||||
return parameters;
|
return parameters;
|
||||||
|
|
|
@ -44,25 +44,16 @@ public class CPPQualifierType implements IQualifierType, ITypeContainer, ISerial
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IQualifierType#isConst()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isConst() {
|
public boolean isConst() {
|
||||||
return isConst;
|
return isConst;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IQualifierType#isVolatile()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isVolatile() {
|
public boolean isVolatile() {
|
||||||
return isVolatile;
|
return isVolatile;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.dom.ast.IQualifierType#getType()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IType getType() {
|
public IType getType() {
|
||||||
return type;
|
return type;
|
||||||
|
|
Loading…
Add table
Reference in a new issue