1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 14:55:41 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2013-05-16 12:36:58 -07:00
parent c4da5d94a2
commit 0243165590
2 changed files with 14 additions and 12 deletions

View file

@ -6,8 +6,8 @@
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* QNX - Initial API and implementation * QNX - Initial API and implementation
* Markus Schorn (Wind River Systems) * Markus Schorn (Wind River Systems)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.internal.core.pdom.dom.cpp; 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; import org.eclipse.core.runtime.CoreException;
/** /**
* The specialization of a friend function template in the context of a class specialization.
*
* @author Bryan Wilkinson * @author Bryan Wilkinson
*
*/ */
class PDOMCPPFunctionTemplateSpecialization extends PDOMCPPFunctionSpecialization class PDOMCPPFunctionTemplateSpecialization extends PDOMCPPFunctionSpecialization
implements ICPPFunctionTemplate, ICPPInstanceCache, IPDOMMemberOwner { implements ICPPFunctionTemplate, ICPPInstanceCache, IPDOMMemberOwner {
public PDOMCPPFunctionTemplateSpecialization(PDOMLinkage linkage, PDOMNode parent, ICPPFunctionTemplate template, PDOMBinding specialized) public PDOMCPPFunctionTemplateSpecialization(PDOMLinkage linkage, PDOMNode parent,
throws CoreException { ICPPFunctionTemplate template, PDOMBinding specialized) throws CoreException {
super(linkage, parent, template, specialized); super(linkage, parent, template, specialized);
} }

View file

@ -569,11 +569,11 @@ class PDOMCPPLinkage extends PDOMLinkage implements IIndexCPPBindingConstants {
result= new PDOMCPPFieldSpecialization(this, parent, (ICPPField) special, orig); result= new PDOMCPPFieldSpecialization(this, parent, (ICPPField) special, orig);
} else if (special instanceof ICPPFunctionTemplate) { } else if (special instanceof ICPPFunctionTemplate) {
if (special instanceof ICPPConstructor) { 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) { } 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) { } 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) { } else if (special instanceof ICPPConstructor) {
result= new PDOMCPPConstructorSpecialization(this, parent, (ICPPConstructor) special, orig); result= new PDOMCPPConstructorSpecialization(this, parent, (ICPPConstructor) special, orig);
@ -617,9 +617,10 @@ class PDOMCPPLinkage extends PDOMLinkage implements IIndexCPPBindingConstants {
pdomBinding.update(this, method); pdomBinding.update(this, method);
old.remove(pdomBinding); old.remove(pdomBinding);
// Update the tags based on the tags from the new binding. This was in PDOMBinding.update, but // Update the tags based on the tags from the new binding. This was in
// I found that not all subclasses (e.g., PDOMCPPFunction) call the parent implementation. // PDOMBinding.update, but not all subclasses (e.g., PDOMCPPFunction)
TagManager.getInstance().syncTags( pdomBinding, method ); // call the parent implementation.
TagManager.getInstance().syncTags(pdomBinding, method);
} }
} }
} }
@ -1155,7 +1156,7 @@ class PDOMCPPLinkage extends PDOMLinkage implements IIndexCPPBindingConstants {
case ITypeMarshalBuffer.BASIC_TYPE: case ITypeMarshalBuffer.BASIC_TYPE:
return CPPBasicType.unmarshal(firstBytes, buffer); return CPPBasicType.unmarshal(firstBytes, buffer);
case ITypeMarshalBuffer.CVQUALIFIER_TYPE: case ITypeMarshalBuffer.CVQUALIFIER_TYPE:
return CPPQualifierType.unmarshal(firstBytes, buffer); return CPPQualifierType.unmarshal(firstBytes, buffer);
case ITypeMarshalBuffer.FUNCTION_TYPE: case ITypeMarshalBuffer.FUNCTION_TYPE:
return CPPFunctionType.unmarshal(firstBytes, buffer); return CPPFunctionType.unmarshal(firstBytes, buffer);
case ITypeMarshalBuffer.POINTER_TYPE: case ITypeMarshalBuffer.POINTER_TYPE: