mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +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) {
|
||||
this(operator, arg1, arg2, findEnclosingTemplate(pointOfDefinition));
|
||||
}
|
||||
|
||||
public EvalBinary(int operator, ICPPEvaluation arg1, ICPPEvaluation arg2, IBinding templateDefinition) {
|
||||
super(templateDefinition);
|
||||
fOperator= operator;
|
||||
|
|
|
@ -42,6 +42,7 @@ public class EvalBinaryTypeId extends CPPDependentEvaluation {
|
|||
public EvalBinaryTypeId(Operator kind, IType type1, IType type2, IASTNode pointOfDefinition) {
|
||||
this(kind, type1, type2, findEnclosingTemplate(pointOfDefinition));
|
||||
}
|
||||
|
||||
public EvalBinaryTypeId(Operator kind, IType type1, IType type2, IBinding templateDefinition) {
|
||||
super(templateDefinition);
|
||||
fOperator= kind;
|
||||
|
|
|
@ -77,6 +77,7 @@ public class EvalBinding extends CPPDependentEvaluation {
|
|||
public EvalBinding(IBinding binding, IType type, IASTNode pointOfDefinition) {
|
||||
this(binding, type, findEnclosingTemplate(pointOfDefinition));
|
||||
}
|
||||
|
||||
public EvalBinding(IBinding binding, IType type, IBinding templateDefinition) {
|
||||
super(templateDefinition);
|
||||
fParameterPosition = -1;
|
||||
|
|
|
@ -40,6 +40,7 @@ public class EvalComma extends CPPDependentEvaluation {
|
|||
public EvalComma(ICPPEvaluation[] evals, IASTNode pointOfDefinition) {
|
||||
this(evals, findEnclosingTemplate(pointOfDefinition));
|
||||
}
|
||||
|
||||
public EvalComma(ICPPEvaluation[] evals, IBinding templateDefinition) {
|
||||
super(templateDefinition);
|
||||
fArguments= evals;
|
||||
|
|
|
@ -35,6 +35,7 @@ public class EvalCompound extends CPPDependentEvaluation {
|
|||
public EvalCompound(ICPPEvaluation delegate, IASTNode pointOfDefinition) {
|
||||
this(delegate, findEnclosingTemplate(pointOfDefinition));
|
||||
}
|
||||
|
||||
public EvalCompound(ICPPEvaluation delegate, IBinding templateDefinition) {
|
||||
super(templateDefinition);
|
||||
fDelegate= delegate;
|
||||
|
|
|
@ -60,6 +60,7 @@ public class EvalConditional extends CPPDependentEvaluation {
|
|||
boolean positiveThrows, boolean negativeThrows, IASTNode pointOfDefinition) {
|
||||
this(condition, positive, negative, positiveThrows, negativeThrows, findEnclosingTemplate(pointOfDefinition));
|
||||
}
|
||||
|
||||
public EvalConditional(ICPPEvaluation condition, ICPPEvaluation positive, ICPPEvaluation negative,
|
||||
boolean positiveThrows, boolean negativeThrows, IBinding templateDefinition) {
|
||||
super(templateDefinition);
|
||||
|
|
|
@ -51,6 +51,7 @@ public class EvalFunctionCall extends CPPDependentEvaluation {
|
|||
public EvalFunctionCall(ICPPEvaluation[] args, IASTNode pointOfDefinition) {
|
||||
this(args, findEnclosingTemplate(pointOfDefinition));
|
||||
}
|
||||
|
||||
public EvalFunctionCall(ICPPEvaluation[] args, IBinding templateDefinition) {
|
||||
super(templateDefinition);
|
||||
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.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.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 org.eclipse.cdt.core.dom.ast.DOMException;
|
||||
|
@ -68,6 +68,7 @@ public class EvalID extends CPPDependentEvaluation {
|
|||
boolean qualified, ICPPTemplateArgument[] templateArgs, IASTNode pointOfDefinition) {
|
||||
this(fieldOwner, nameOwner, simpleID, addressOf, qualified, templateArgs, findEnclosingTemplate(pointOfDefinition));
|
||||
}
|
||||
|
||||
public EvalID(ICPPEvaluation fieldOwner, IBinding nameOwner, char[] simpleID, boolean addressOf,
|
||||
boolean qualified, ICPPTemplateArgument[] templateArgs, IBinding templateDefinition) {
|
||||
super(templateDefinition);
|
||||
|
|
|
@ -35,6 +35,7 @@ public class EvalInitList extends CPPDependentEvaluation {
|
|||
public EvalInitList(ICPPEvaluation[] clauses, IASTNode pointOfDefinition) {
|
||||
this(clauses, findEnclosingTemplate(pointOfDefinition));
|
||||
}
|
||||
|
||||
public EvalInitList(ICPPEvaluation[] clauses, IBinding templateDefinition) {
|
||||
super(templateDefinition);
|
||||
fClauses= clauses;
|
||||
|
|
|
@ -70,6 +70,7 @@ public class EvalMemberAccess extends CPPDependentEvaluation {
|
|||
boolean isPointerDeref, IASTNode pointOfDefinition) {
|
||||
this(ownerType, ownerValueCat, member, isPointerDeref, findEnclosingTemplate(pointOfDefinition));
|
||||
}
|
||||
|
||||
public EvalMemberAccess(IType ownerType, ValueCategory ownerValueCat, IBinding member,
|
||||
boolean isPointerDeref, IBinding templateDefinition) {
|
||||
super(templateDefinition);
|
||||
|
|
|
@ -36,6 +36,7 @@ public class EvalParameterPack extends CPPDependentEvaluation {
|
|||
public EvalParameterPack(ICPPEvaluation expansionPattern, IASTNode pointOfDefinition) {
|
||||
this(expansionPattern, findEnclosingTemplate(pointOfDefinition));
|
||||
}
|
||||
|
||||
public EvalParameterPack(ICPPEvaluation expansionPattern, IBinding templateDefinition) {
|
||||
super(templateDefinition);
|
||||
fExpansionPattern = expansionPattern;
|
||||
|
|
|
@ -39,6 +39,7 @@ public class EvalTypeId extends CPPDependentEvaluation {
|
|||
public EvalTypeId(IType type, IASTNode pointOfDefinition, ICPPEvaluation... arguments) {
|
||||
this(type, findEnclosingTemplate(pointOfDefinition), arguments);
|
||||
}
|
||||
|
||||
public EvalTypeId(IType type, IBinding templateDefinition, ICPPEvaluation... arguments) {
|
||||
super(templateDefinition);
|
||||
if (arguments == null)
|
||||
|
|
|
@ -59,6 +59,7 @@ public class EvalUnaryTypeID extends CPPDependentEvaluation {
|
|||
public EvalUnaryTypeID(int operator, IType type, IASTNode pointOfDefinition) {
|
||||
this(operator, type, findEnclosingTemplate(pointOfDefinition));
|
||||
}
|
||||
|
||||
public EvalUnaryTypeID(int operator, IType type, IBinding templateDefinition) {
|
||||
super(templateDefinition);
|
||||
fOperator= operator;
|
||||
|
|
Loading…
Add table
Reference in a new issue