From 78c1d3237ba7505732e08818abb3528ff9dab825 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Mon, 10 Mar 2014 10:09:28 -0700 Subject: [PATCH] Bug 430029 - CPPASTBaseDeclSpecifier.copy() doesn't copy isThreadLocal. --- .../dom/parser/cpp/CPPASTBaseDeclSpecifier.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTBaseDeclSpecifier.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTBaseDeclSpecifier.java index d5016748bbb..9f9eeff4e16 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTBaseDeclSpecifier.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTBaseDeclSpecifier.java @@ -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 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); }