diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunctionTemplateSpecialization.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunctionTemplateSpecialization.java index 9c3e6cf40d8..6a2341f1b11 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunctionTemplateSpecialization.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunctionTemplateSpecialization.java @@ -6,8 +6,8 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * QNX - Initial API and implementation - * Markus Schorn (Wind River Systems) + * QNX - Initial API and implementation + * Markus Schorn (Wind River Systems) *******************************************************************************/ package org.eclipse.cdt.internal.core.pdom.dom.cpp; @@ -24,14 +24,15 @@ import org.eclipse.cdt.internal.core.pdom.dom.PDOMNode; import org.eclipse.core.runtime.CoreException; /** + * The specialization of a friend function template in the context of a class specialization. + * * @author Bryan Wilkinson - * */ class PDOMCPPFunctionTemplateSpecialization extends PDOMCPPFunctionSpecialization implements ICPPFunctionTemplate, ICPPInstanceCache, IPDOMMemberOwner { - public PDOMCPPFunctionTemplateSpecialization(PDOMLinkage linkage, PDOMNode parent, ICPPFunctionTemplate template, PDOMBinding specialized) - throws CoreException { + public PDOMCPPFunctionTemplateSpecialization(PDOMLinkage linkage, PDOMNode parent, + ICPPFunctionTemplate template, PDOMBinding specialized) throws CoreException { super(linkage, parent, template, specialized); } diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage.java index f5dd6fa3d09..893cdb9426a 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage.java @@ -569,11 +569,11 @@ class PDOMCPPLinkage extends PDOMLinkage implements IIndexCPPBindingConstants { result= new PDOMCPPFieldSpecialization(this, parent, (ICPPField) special, orig); } else if (special instanceof ICPPFunctionTemplate) { if (special instanceof ICPPConstructor) { - result= new PDOMCPPConstructorTemplateSpecialization( this, parent, (ICPPConstructor) special, orig); + result= new PDOMCPPConstructorTemplateSpecialization(this, parent, (ICPPConstructor) special, orig); } else if (special instanceof ICPPMethod) { - result= new PDOMCPPMethodTemplateSpecialization( this, parent, (ICPPMethod) special, orig); + result= new PDOMCPPMethodTemplateSpecialization(this, parent, (ICPPMethod) special, orig); } else if (special instanceof ICPPFunction) { - result= new PDOMCPPFunctionTemplateSpecialization( this, parent, (ICPPFunctionTemplate) special, orig); + result= new PDOMCPPFunctionTemplateSpecialization(this, parent, (ICPPFunctionTemplate) special, orig); } } else if (special instanceof ICPPConstructor) { result= new PDOMCPPConstructorSpecialization(this, parent, (ICPPConstructor) special, orig); @@ -617,9 +617,10 @@ class PDOMCPPLinkage extends PDOMLinkage implements IIndexCPPBindingConstants { pdomBinding.update(this, method); old.remove(pdomBinding); - // Update the tags based on the tags from the new binding. This was in PDOMBinding.update, but - // I found that not all subclasses (e.g., PDOMCPPFunction) call the parent implementation. - TagManager.getInstance().syncTags( pdomBinding, method ); + // Update the tags based on the tags from the new binding. This was in + // PDOMBinding.update, but not all subclasses (e.g., PDOMCPPFunction) + // call the parent implementation. + TagManager.getInstance().syncTags(pdomBinding, method); } } } @@ -1155,7 +1156,7 @@ class PDOMCPPLinkage extends PDOMLinkage implements IIndexCPPBindingConstants { case ITypeMarshalBuffer.BASIC_TYPE: return CPPBasicType.unmarshal(firstBytes, buffer); case ITypeMarshalBuffer.CVQUALIFIER_TYPE: - return CPPQualifierType.unmarshal(firstBytes, buffer); + return CPPQualifierType.unmarshal(firstBytes, buffer); case ITypeMarshalBuffer.FUNCTION_TYPE: return CPPFunctionType.unmarshal(firstBytes, buffer); case ITypeMarshalBuffer.POINTER_TYPE: