mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
4e872b05cb
commit
34d5ba7154
1 changed files with 8 additions and 12 deletions
|
@ -87,11 +87,7 @@ public class CPPASTFunctionCallExpression extends ASTNode
|
|||
|
||||
CPPASTFunctionCallExpression copy = new CPPASTFunctionCallExpression(null, args);
|
||||
copy.setFunctionNameExpression(functionName == null ? null : functionName.copy(style));
|
||||
copy.setOffsetAndLength(this);
|
||||
if (style == CopyStyle.withLocations) {
|
||||
copy.setCopyLocation(this);
|
||||
}
|
||||
return copy;
|
||||
return copy(copy, style);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -240,7 +236,7 @@ public class CPPASTFunctionCallExpression extends ASTNode
|
|||
overload= null;
|
||||
IType t= isExplicitTypeConversion();
|
||||
if (t != null) {
|
||||
t = getNestedType(t, TDEF|CVTYPE|REF);
|
||||
t = getNestedType(t, TDEF | CVTYPE | REF);
|
||||
if (t instanceof ICPPClassType && !(t instanceof ICPPUnknownBinding)) {
|
||||
ICPPClassType cls= (ICPPClassType) t;
|
||||
LookupData data= CPPSemantics.createLookupData(((IASTIdExpression) functionName).getName());
|
||||
|
@ -252,9 +248,9 @@ public class CPPASTFunctionCallExpression extends ASTNode
|
|||
}
|
||||
}
|
||||
} else {
|
||||
t= SemanticUtil.getNestedType(functionName.getExpressionType(), TDEF|REF|CVTYPE);
|
||||
t= SemanticUtil.getNestedType(functionName.getExpressionType(), TDEF | REF | CVTYPE);
|
||||
if (t instanceof ICPPClassType) {
|
||||
overload = CPPSemantics.findOverloadedOperator(this, (ICPPClassType)t);
|
||||
overload = CPPSemantics.findOverloadedOperator(this, (ICPPClassType) t);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -272,10 +268,10 @@ public class CPPASTFunctionCallExpression extends ASTNode
|
|||
return prvalueType(t);
|
||||
}
|
||||
|
||||
t= SemanticUtil.getNestedType(functionName.getExpressionType(), TDEF|REF|CVTYPE);
|
||||
t= SemanticUtil.getNestedType(functionName.getExpressionType(), TDEF | REF | CVTYPE);
|
||||
if (t instanceof ICPPClassType) {
|
||||
if (overload == UNINITIALIZED_FUNCTION) {
|
||||
overload = CPPSemantics.findOverloadedOperator(this, (ICPPClassType)t);
|
||||
overload = CPPSemantics.findOverloadedOperator(this, (ICPPClassType) t);
|
||||
}
|
||||
if (overload != null) {
|
||||
return typeFromFunctionCall(overload);
|
||||
|
@ -318,7 +314,7 @@ public class CPPASTFunctionCallExpression extends ASTNode
|
|||
IType t= functionName.getExpressionType();
|
||||
if (t instanceof ICPPClassType) {
|
||||
if (overload == UNINITIALIZED_FUNCTION) {
|
||||
overload = CPPSemantics.findOverloadedOperator(this, (ICPPClassType)t);
|
||||
overload = CPPSemantics.findOverloadedOperator(this, (ICPPClassType) t);
|
||||
}
|
||||
if (overload != null) {
|
||||
return valueCategoryFromFunctionCall(overload);
|
||||
|
|
Loading…
Add table
Reference in a new issue