mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
a7797cd437
commit
823e0d0984
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ public class CPPClosureType extends PlatformObject implements ICPPClassType, ICP
|
||||||
}
|
}
|
||||||
m= new CPPImplicitMethod(scope, OverloadableOperator.PAREN.toCharArray(), ft, params) {
|
m= new CPPImplicitMethod(scope, OverloadableOperator.PAREN.toCharArray(), ft, params) {
|
||||||
@Override
|
@Override
|
||||||
public boolean isImplicit() {return false;}
|
public boolean isImplicit() { return false; }
|
||||||
};
|
};
|
||||||
result[4]= m;
|
result[4]= m;
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ public class CPPClosureType extends PlatformObject implements ICPPClassType, ICP
|
||||||
IASTStatement[] stmts = body.getStatements();
|
IASTStatement[] stmts = body.getStatements();
|
||||||
if (stmts.length > 0) {
|
if (stmts.length > 0) {
|
||||||
// Gnu extension allows to deduce return type in complex compound statements
|
// Gnu extension allows to deduce return type in complex compound statements
|
||||||
IASTStatement stmt= stmts[stmts.length-1];
|
IASTStatement stmt= stmts[stmts.length - 1];
|
||||||
if (stmt instanceof IASTReturnStatement) {
|
if (stmt instanceof IASTReturnStatement) {
|
||||||
IASTReturnStatement rtstmt= (IASTReturnStatement) stmt;
|
IASTReturnStatement rtstmt= (IASTReturnStatement) stmt;
|
||||||
IASTExpression expr= rtstmt.getReturnValue();
|
IASTExpression expr= rtstmt.getReturnValue();
|
||||||
|
|
Loading…
Add table
Reference in a new issue