mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
Cosmetics.
This commit is contained in:
parent
5adfb67a9d
commit
ff8baa2754
2 changed files with 30 additions and 37 deletions
|
@ -48,7 +48,7 @@ public class CFunction extends PlatformObject implements IFunction, ICInternalFu
|
|||
|
||||
private static final int FULLY_RESOLVED = 1;
|
||||
private static final int RESOLUTION_IN_PROGRESS = 1 << 1;
|
||||
private int bits = 0;
|
||||
private int bits;
|
||||
|
||||
protected IFunctionType type;
|
||||
|
||||
|
@ -112,9 +112,6 @@ public class CFunction extends PlatformObject implements IFunction, ICInternalFu
|
|||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.core.dom.ast.IFunction#getParameters()
|
||||
*/
|
||||
@Override
|
||||
public IParameter[] getParameters() {
|
||||
int j= -1;
|
||||
|
@ -140,8 +137,8 @@ public class CFunction extends PlatformObject implements IFunction, ICInternalFu
|
|||
IASTName[] names = ((ICASTKnRFunctionDeclarator) dtor).getParameterNames();
|
||||
IParameter[] result = new IParameter[names.length];
|
||||
if (names.length > 0) {
|
||||
// Ensures that the list of parameters is created in the same order as the K&R C parameter
|
||||
// names
|
||||
// Ensures that the list of parameters is created in the same order as
|
||||
// the K&R C parameter names
|
||||
for (int i = 0; i < names.length; i++) {
|
||||
IASTDeclarator decl = CVisitor.getKnRParameterDeclarator(
|
||||
(ICASTKnRFunctionDeclarator) dtor, names[i]);
|
||||
|
|
|
@ -42,24 +42,20 @@ public class CFunctionType implements IFunctionType, ISerializableType {
|
|||
return false;
|
||||
if (!returnType.isSameType(ft.getReturnType()))
|
||||
return false;
|
||||
for( int i = 0; i < parameters.length; i++ )
|
||||
for (int i = 0; i < parameters.length; i++) {
|
||||
if (!parameters[i].isSameType(fps[i]))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue