mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-08 16:55:38 +02:00
Code formatting.
This commit is contained in:
parent
6ea85657c4
commit
fb3b1587e1
4 changed files with 13 additions and 13 deletions
|
@ -86,8 +86,7 @@ public class ASTTypeUtil {
|
||||||
if (parameters.length == 0) {
|
if (parameters.length == 0) {
|
||||||
return false;
|
return false;
|
||||||
} else if (parameters.length == 1) {
|
} else if (parameters.length == 1) {
|
||||||
IType ultimateType = SemanticUtil
|
IType ultimateType = SemanticUtil.getUltimateTypeViaTypedefs(parameters[0].getType());
|
||||||
.getUltimateTypeViaTypedefs(parameters[0].getType());
|
|
||||||
|
|
||||||
if (ultimateType instanceof IBasicType) {
|
if (ultimateType instanceof IBasicType) {
|
||||||
if (((IBasicType) ultimateType).getType() == IBasicType.t_void) {
|
if (((IBasicType) ultimateType).getType() == IBasicType.t_void) {
|
||||||
|
@ -559,7 +558,9 @@ public class ASTTypeUtil {
|
||||||
return getType((IType)((IASTName) node).resolveBinding());
|
return getType((IType)((IASTName) node).resolveBinding());
|
||||||
if (node instanceof IASTTypeId)
|
if (node instanceof IASTTypeId)
|
||||||
return getType((IASTTypeId) node);
|
return getType((IASTTypeId) node);
|
||||||
} catch (DOMException e) { return EMPTY_STRING; }
|
} catch (DOMException e) {
|
||||||
|
return EMPTY_STRING;
|
||||||
|
}
|
||||||
|
|
||||||
return EMPTY_STRING;
|
return EMPTY_STRING;
|
||||||
}
|
}
|
||||||
|
@ -681,8 +682,7 @@ public class ASTTypeUtil {
|
||||||
IASTNode node= null;
|
IASTNode node= null;
|
||||||
if (binding instanceof ICInternalBinding) {
|
if (binding instanceof ICInternalBinding) {
|
||||||
node= ((ICInternalBinding) binding).getPhysicalNode();
|
node= ((ICInternalBinding) binding).getPhysicalNode();
|
||||||
}
|
} else if (binding instanceof ICPPInternalBinding) {
|
||||||
else if (binding instanceof ICPPInternalBinding) {
|
|
||||||
node= ((ICPPInternalBinding) binding).getDefinition();
|
node= ((ICPPInternalBinding) binding).getDefinition();
|
||||||
}
|
}
|
||||||
if (node != null) {
|
if (node != null) {
|
||||||
|
|
|
@ -2040,7 +2040,8 @@ public class CPPSemantics {
|
||||||
if (data.forFunctionDeclaration())
|
if (data.forFunctionDeclaration())
|
||||||
return firstViable;
|
return firstViable;
|
||||||
|
|
||||||
final IType[] sourceParameters = getSourceParameterTypes(data.functionParameters); // the parameters the function is being called with
|
// The parameters the function is being called with
|
||||||
|
final IType[] sourceParameters = getSourceParameterTypes(data.functionParameters);
|
||||||
if (CPPTemplates.containsDependentType(sourceParameters)) {
|
if (CPPTemplates.containsDependentType(sourceParameters)) {
|
||||||
if (viableCount == 1)
|
if (viableCount == 1)
|
||||||
return firstViable;
|
return firstViable;
|
||||||
|
|
|
@ -37,5 +37,4 @@ public class CompositeFunctionType extends CompositeType implements IFunctionTyp
|
||||||
public boolean isSameType(IType other) {
|
public boolean isSameType(IType other) {
|
||||||
return type.isSameType(other);
|
return type.isSameType(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue