mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Cosmetics.
This commit is contained in:
parent
b5a53c0d7c
commit
7303489198
13 changed files with 15 additions and 2 deletions
|
@ -84,6 +84,7 @@ public class EvalBinary extends CPPDependentEvaluation {
|
||||||
public EvalBinary(int operator, ICPPEvaluation arg1, ICPPEvaluation arg2, IASTNode pointOfDefinition) {
|
public EvalBinary(int operator, ICPPEvaluation arg1, ICPPEvaluation arg2, IASTNode pointOfDefinition) {
|
||||||
this(operator, arg1, arg2, findEnclosingTemplate(pointOfDefinition));
|
this(operator, arg1, arg2, findEnclosingTemplate(pointOfDefinition));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EvalBinary(int operator, ICPPEvaluation arg1, ICPPEvaluation arg2, IBinding templateDefinition) {
|
public EvalBinary(int operator, ICPPEvaluation arg1, ICPPEvaluation arg2, IBinding templateDefinition) {
|
||||||
super(templateDefinition);
|
super(templateDefinition);
|
||||||
fOperator= operator;
|
fOperator= operator;
|
||||||
|
|
|
@ -42,6 +42,7 @@ public class EvalBinaryTypeId extends CPPDependentEvaluation {
|
||||||
public EvalBinaryTypeId(Operator kind, IType type1, IType type2, IASTNode pointOfDefinition) {
|
public EvalBinaryTypeId(Operator kind, IType type1, IType type2, IASTNode pointOfDefinition) {
|
||||||
this(kind, type1, type2, findEnclosingTemplate(pointOfDefinition));
|
this(kind, type1, type2, findEnclosingTemplate(pointOfDefinition));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EvalBinaryTypeId(Operator kind, IType type1, IType type2, IBinding templateDefinition) {
|
public EvalBinaryTypeId(Operator kind, IType type1, IType type2, IBinding templateDefinition) {
|
||||||
super(templateDefinition);
|
super(templateDefinition);
|
||||||
fOperator= kind;
|
fOperator= kind;
|
||||||
|
|
|
@ -77,6 +77,7 @@ public class EvalBinding extends CPPDependentEvaluation {
|
||||||
public EvalBinding(IBinding binding, IType type, IASTNode pointOfDefinition) {
|
public EvalBinding(IBinding binding, IType type, IASTNode pointOfDefinition) {
|
||||||
this(binding, type, findEnclosingTemplate(pointOfDefinition));
|
this(binding, type, findEnclosingTemplate(pointOfDefinition));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EvalBinding(IBinding binding, IType type, IBinding templateDefinition) {
|
public EvalBinding(IBinding binding, IType type, IBinding templateDefinition) {
|
||||||
super(templateDefinition);
|
super(templateDefinition);
|
||||||
fParameterPosition = -1;
|
fParameterPosition = -1;
|
||||||
|
|
|
@ -40,6 +40,7 @@ public class EvalComma extends CPPDependentEvaluation {
|
||||||
public EvalComma(ICPPEvaluation[] evals, IASTNode pointOfDefinition) {
|
public EvalComma(ICPPEvaluation[] evals, IASTNode pointOfDefinition) {
|
||||||
this(evals, findEnclosingTemplate(pointOfDefinition));
|
this(evals, findEnclosingTemplate(pointOfDefinition));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EvalComma(ICPPEvaluation[] evals, IBinding templateDefinition) {
|
public EvalComma(ICPPEvaluation[] evals, IBinding templateDefinition) {
|
||||||
super(templateDefinition);
|
super(templateDefinition);
|
||||||
fArguments= evals;
|
fArguments= evals;
|
||||||
|
|
|
@ -35,6 +35,7 @@ public class EvalCompound extends CPPDependentEvaluation {
|
||||||
public EvalCompound(ICPPEvaluation delegate, IASTNode pointOfDefinition) {
|
public EvalCompound(ICPPEvaluation delegate, IASTNode pointOfDefinition) {
|
||||||
this(delegate, findEnclosingTemplate(pointOfDefinition));
|
this(delegate, findEnclosingTemplate(pointOfDefinition));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EvalCompound(ICPPEvaluation delegate, IBinding templateDefinition) {
|
public EvalCompound(ICPPEvaluation delegate, IBinding templateDefinition) {
|
||||||
super(templateDefinition);
|
super(templateDefinition);
|
||||||
fDelegate= delegate;
|
fDelegate= delegate;
|
||||||
|
|
|
@ -60,6 +60,7 @@ public class EvalConditional extends CPPDependentEvaluation {
|
||||||
boolean positiveThrows, boolean negativeThrows, IASTNode pointOfDefinition) {
|
boolean positiveThrows, boolean negativeThrows, IASTNode pointOfDefinition) {
|
||||||
this(condition, positive, negative, positiveThrows, negativeThrows, findEnclosingTemplate(pointOfDefinition));
|
this(condition, positive, negative, positiveThrows, negativeThrows, findEnclosingTemplate(pointOfDefinition));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EvalConditional(ICPPEvaluation condition, ICPPEvaluation positive, ICPPEvaluation negative,
|
public EvalConditional(ICPPEvaluation condition, ICPPEvaluation positive, ICPPEvaluation negative,
|
||||||
boolean positiveThrows, boolean negativeThrows, IBinding templateDefinition) {
|
boolean positiveThrows, boolean negativeThrows, IBinding templateDefinition) {
|
||||||
super(templateDefinition);
|
super(templateDefinition);
|
||||||
|
|
|
@ -51,6 +51,7 @@ public class EvalFunctionCall extends CPPDependentEvaluation {
|
||||||
public EvalFunctionCall(ICPPEvaluation[] args, IASTNode pointOfDefinition) {
|
public EvalFunctionCall(ICPPEvaluation[] args, IASTNode pointOfDefinition) {
|
||||||
this(args, findEnclosingTemplate(pointOfDefinition));
|
this(args, findEnclosingTemplate(pointOfDefinition));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EvalFunctionCall(ICPPEvaluation[] args, IBinding templateDefinition) {
|
public EvalFunctionCall(ICPPEvaluation[] args, IBinding templateDefinition) {
|
||||||
super(templateDefinition);
|
super(templateDefinition);
|
||||||
fArguments= args;
|
fArguments= args;
|
||||||
|
|
|
@ -14,9 +14,9 @@ package org.eclipse.cdt.internal.core.dom.parser.cpp.semantics;
|
||||||
|
|
||||||
import static org.eclipse.cdt.core.dom.ast.IASTExpression.ValueCategory.LVALUE;
|
import static org.eclipse.cdt.core.dom.ast.IASTExpression.ValueCategory.LVALUE;
|
||||||
import static org.eclipse.cdt.core.dom.ast.IASTExpression.ValueCategory.PRVALUE;
|
import static org.eclipse.cdt.core.dom.ast.IASTExpression.ValueCategory.PRVALUE;
|
||||||
import static org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.SemanticUtil.TDEF;
|
|
||||||
import static org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.SemanticUtil.REF;
|
|
||||||
import static org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.SemanticUtil.CVTYPE;
|
import static org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.SemanticUtil.CVTYPE;
|
||||||
|
import static org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.SemanticUtil.REF;
|
||||||
|
import static org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.SemanticUtil.TDEF;
|
||||||
import static org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.SemanticUtil.getNestedType;
|
import static org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.SemanticUtil.getNestedType;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.dom.ast.DOMException;
|
import org.eclipse.cdt.core.dom.ast.DOMException;
|
||||||
|
@ -68,6 +68,7 @@ public class EvalID extends CPPDependentEvaluation {
|
||||||
boolean qualified, ICPPTemplateArgument[] templateArgs, IASTNode pointOfDefinition) {
|
boolean qualified, ICPPTemplateArgument[] templateArgs, IASTNode pointOfDefinition) {
|
||||||
this(fieldOwner, nameOwner, simpleID, addressOf, qualified, templateArgs, findEnclosingTemplate(pointOfDefinition));
|
this(fieldOwner, nameOwner, simpleID, addressOf, qualified, templateArgs, findEnclosingTemplate(pointOfDefinition));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EvalID(ICPPEvaluation fieldOwner, IBinding nameOwner, char[] simpleID, boolean addressOf,
|
public EvalID(ICPPEvaluation fieldOwner, IBinding nameOwner, char[] simpleID, boolean addressOf,
|
||||||
boolean qualified, ICPPTemplateArgument[] templateArgs, IBinding templateDefinition) {
|
boolean qualified, ICPPTemplateArgument[] templateArgs, IBinding templateDefinition) {
|
||||||
super(templateDefinition);
|
super(templateDefinition);
|
||||||
|
|
|
@ -35,6 +35,7 @@ public class EvalInitList extends CPPDependentEvaluation {
|
||||||
public EvalInitList(ICPPEvaluation[] clauses, IASTNode pointOfDefinition) {
|
public EvalInitList(ICPPEvaluation[] clauses, IASTNode pointOfDefinition) {
|
||||||
this(clauses, findEnclosingTemplate(pointOfDefinition));
|
this(clauses, findEnclosingTemplate(pointOfDefinition));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EvalInitList(ICPPEvaluation[] clauses, IBinding templateDefinition) {
|
public EvalInitList(ICPPEvaluation[] clauses, IBinding templateDefinition) {
|
||||||
super(templateDefinition);
|
super(templateDefinition);
|
||||||
fClauses= clauses;
|
fClauses= clauses;
|
||||||
|
|
|
@ -70,6 +70,7 @@ public class EvalMemberAccess extends CPPDependentEvaluation {
|
||||||
boolean isPointerDeref, IASTNode pointOfDefinition) {
|
boolean isPointerDeref, IASTNode pointOfDefinition) {
|
||||||
this(ownerType, ownerValueCat, member, isPointerDeref, findEnclosingTemplate(pointOfDefinition));
|
this(ownerType, ownerValueCat, member, isPointerDeref, findEnclosingTemplate(pointOfDefinition));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EvalMemberAccess(IType ownerType, ValueCategory ownerValueCat, IBinding member,
|
public EvalMemberAccess(IType ownerType, ValueCategory ownerValueCat, IBinding member,
|
||||||
boolean isPointerDeref, IBinding templateDefinition) {
|
boolean isPointerDeref, IBinding templateDefinition) {
|
||||||
super(templateDefinition);
|
super(templateDefinition);
|
||||||
|
|
|
@ -36,6 +36,7 @@ public class EvalParameterPack extends CPPDependentEvaluation {
|
||||||
public EvalParameterPack(ICPPEvaluation expansionPattern, IASTNode pointOfDefinition) {
|
public EvalParameterPack(ICPPEvaluation expansionPattern, IASTNode pointOfDefinition) {
|
||||||
this(expansionPattern, findEnclosingTemplate(pointOfDefinition));
|
this(expansionPattern, findEnclosingTemplate(pointOfDefinition));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EvalParameterPack(ICPPEvaluation expansionPattern, IBinding templateDefinition) {
|
public EvalParameterPack(ICPPEvaluation expansionPattern, IBinding templateDefinition) {
|
||||||
super(templateDefinition);
|
super(templateDefinition);
|
||||||
fExpansionPattern = expansionPattern;
|
fExpansionPattern = expansionPattern;
|
||||||
|
|
|
@ -39,6 +39,7 @@ public class EvalTypeId extends CPPDependentEvaluation {
|
||||||
public EvalTypeId(IType type, IASTNode pointOfDefinition, ICPPEvaluation... arguments) {
|
public EvalTypeId(IType type, IASTNode pointOfDefinition, ICPPEvaluation... arguments) {
|
||||||
this(type, findEnclosingTemplate(pointOfDefinition), arguments);
|
this(type, findEnclosingTemplate(pointOfDefinition), arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
public EvalTypeId(IType type, IBinding templateDefinition, ICPPEvaluation... arguments) {
|
public EvalTypeId(IType type, IBinding templateDefinition, ICPPEvaluation... arguments) {
|
||||||
super(templateDefinition);
|
super(templateDefinition);
|
||||||
if (arguments == null)
|
if (arguments == null)
|
||||||
|
|
|
@ -59,6 +59,7 @@ public class EvalUnaryTypeID extends CPPDependentEvaluation {
|
||||||
public EvalUnaryTypeID(int operator, IType type, IASTNode pointOfDefinition) {
|
public EvalUnaryTypeID(int operator, IType type, IASTNode pointOfDefinition) {
|
||||||
this(operator, type, findEnclosingTemplate(pointOfDefinition));
|
this(operator, type, findEnclosingTemplate(pointOfDefinition));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EvalUnaryTypeID(int operator, IType type, IBinding templateDefinition) {
|
public EvalUnaryTypeID(int operator, IType type, IBinding templateDefinition) {
|
||||||
super(templateDefinition);
|
super(templateDefinition);
|
||||||
fOperator= operator;
|
fOperator= operator;
|
||||||
|
|
Loading…
Add table
Reference in a new issue