mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +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 {
|
||||
/**
|
||||
* Returns <code>true</code> for a constant method
|
||||
* Returns {@code true} for a constant method.
|
||||
*/
|
||||
public boolean isConst();
|
||||
|
||||
/**
|
||||
* Returns <code>true</code> for a volatile method
|
||||
* Returns {@code true} for a volatile method.
|
||||
*/
|
||||
public boolean isVolatile();
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ public class CPPFunctionType implements ICPPFunctionType, ISerializableType {
|
|||
|
||||
IType[] fps;
|
||||
fps = ft.getParameterTypes();
|
||||
//constructors & destructors have null return type
|
||||
// Constructors & destructors have null return type.
|
||||
if ((returnType == null) ^ (ft.getReturnType() == null))
|
||||
return false;
|
||||
|
||||
|
@ -81,17 +81,11 @@ public class CPPFunctionType implements ICPPFunctionType, ISerializableType {
|
|||
return false;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.core.dom.ast.IFunctionType#getReturnType()
|
||||
*/
|
||||
@Override
|
||||
public IType getReturnType() {
|
||||
return returnType;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.core.dom.ast.IFunctionType#getParameterTypes()
|
||||
*/
|
||||
@Override
|
||||
public IType[] getParameterTypes() {
|
||||
return parameters;
|
||||
|
|
|
@ -44,25 +44,16 @@ public class CPPQualifierType implements IQualifierType, ITypeContainer, ISerial
|
|||
return false;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.core.dom.ast.IQualifierType#isConst()
|
||||
*/
|
||||
@Override
|
||||
public boolean isConst() {
|
||||
return isConst;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.core.dom.ast.IQualifierType#isVolatile()
|
||||
*/
|
||||
@Override
|
||||
public boolean isVolatile() {
|
||||
return isVolatile;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.core.dom.ast.IQualifierType#getType()
|
||||
*/
|
||||
@Override
|
||||
public IType getType() {
|
||||
return type;
|
||||
|
|
Loading…
Add table
Reference in a new issue