mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 07:15:39 +02:00
Bug 430029 - CPPASTBaseDeclSpecifier.copy() doesn't copy isThreadLocal.
This commit is contained in:
parent
b5cf6c388c
commit
78c1d3237b
1 changed files with 8 additions and 7 deletions
|
@ -16,19 +16,19 @@ import org.eclipse.cdt.internal.core.dom.parser.ASTAttributeOwner;
|
||||||
import org.eclipse.cdt.internal.core.model.ASTStringUtil;
|
import org.eclipse.cdt.internal.core.model.ASTStringUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base for all c++ declaration specifiers
|
* Base for all c++ declaration specifiers.
|
||||||
*/
|
*/
|
||||||
public abstract class CPPASTBaseDeclSpecifier extends ASTAttributeOwner implements ICPPASTDeclSpecifier {
|
public abstract class CPPASTBaseDeclSpecifier extends ASTAttributeOwner implements ICPPASTDeclSpecifier {
|
||||||
|
private boolean explicit;
|
||||||
private boolean friend;
|
private boolean friend;
|
||||||
private boolean inline;
|
private boolean inline;
|
||||||
private boolean isConst;
|
private boolean isConst;
|
||||||
private boolean isConstexpr;
|
private boolean isConstexpr;
|
||||||
private boolean isVolatile;
|
|
||||||
private boolean isRestrict;
|
private boolean isRestrict;
|
||||||
private int sc;
|
|
||||||
private boolean isThreadLocal;
|
private boolean isThreadLocal;
|
||||||
|
private boolean isVolatile;
|
||||||
|
private int sc;
|
||||||
private boolean virtual;
|
private boolean virtual;
|
||||||
private boolean explicit;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isFriend() {
|
public boolean isFriend() {
|
||||||
|
@ -142,15 +142,16 @@ public abstract class CPPASTBaseDeclSpecifier extends ASTAttributeOwner implemen
|
||||||
|
|
||||||
protected <T extends CPPASTBaseDeclSpecifier> T copy(T copy, CopyStyle style) {
|
protected <T extends CPPASTBaseDeclSpecifier> T copy(T copy, CopyStyle style) {
|
||||||
CPPASTBaseDeclSpecifier target = copy;
|
CPPASTBaseDeclSpecifier target = copy;
|
||||||
|
target.explicit = explicit;
|
||||||
target.friend = friend;
|
target.friend = friend;
|
||||||
target.inline = inline;
|
target.inline = inline;
|
||||||
target.isConst = isConst;
|
target.isConst = isConst;
|
||||||
target.isConstexpr = isConstexpr;
|
target.isConstexpr = isConstexpr;
|
||||||
target.isVolatile = isVolatile;
|
|
||||||
target.isRestrict= isRestrict;
|
target.isRestrict= isRestrict;
|
||||||
target.virtual = virtual;
|
target.isThreadLocal = isThreadLocal;
|
||||||
target.explicit = explicit;
|
target.isVolatile = isVolatile;
|
||||||
target.sc = sc;
|
target.sc = sc;
|
||||||
|
target.virtual = virtual;
|
||||||
return super.copy(copy, style);
|
return super.copy(copy, style);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue