1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2014-08-26 16:05:56 -07:00
parent 3bfe2d21a7
commit 33b70bb10c
3 changed files with 3 additions and 18 deletions

View file

@ -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();

View file

@ -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;

View file

@ -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;