mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +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;
|
||||
|
||||
/**
|
||||
* Base for all c++ declaration specifiers
|
||||
* Base for all c++ declaration specifiers.
|
||||
*/
|
||||
public abstract class CPPASTBaseDeclSpecifier extends ASTAttributeOwner implements ICPPASTDeclSpecifier {
|
||||
private boolean explicit;
|
||||
private boolean friend;
|
||||
private boolean inline;
|
||||
private boolean isConst;
|
||||
private boolean isConstexpr;
|
||||
private boolean isVolatile;
|
||||
private boolean isRestrict;
|
||||
private int sc;
|
||||
private boolean isThreadLocal;
|
||||
private boolean isVolatile;
|
||||
private int sc;
|
||||
private boolean virtual;
|
||||
private boolean explicit;
|
||||
|
||||
@Override
|
||||
public boolean isFriend() {
|
||||
|
@ -142,15 +142,16 @@ public abstract class CPPASTBaseDeclSpecifier extends ASTAttributeOwner implemen
|
|||
|
||||
protected <T extends CPPASTBaseDeclSpecifier> T copy(T copy, CopyStyle style) {
|
||||
CPPASTBaseDeclSpecifier target = copy;
|
||||
target.explicit = explicit;
|
||||
target.friend = friend;
|
||||
target.inline = inline;
|
||||
target.isConst = isConst;
|
||||
target.isConstexpr = isConstexpr;
|
||||
target.isVolatile = isVolatile;
|
||||
target.isRestrict= isRestrict;
|
||||
target.virtual = virtual;
|
||||
target.explicit = explicit;
|
||||
target.isThreadLocal = isThreadLocal;
|
||||
target.isVolatile = isVolatile;
|
||||
target.sc = sc;
|
||||
target.virtual = virtual;
|
||||
return super.copy(copy, style);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue