1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 20:05:35 +02:00

Patch for Bryan - 167098 - fix for constructor/method template specializations.

This commit is contained in:
Doug Schaefer 2007-04-20 16:20:21 +00:00
parent 1bc986271c
commit 4ce2d4020f

View file

@ -316,12 +316,6 @@ class PDOMCPPLinkage extends PDOMLinkage {
} else if (binding instanceof ICPPField) {
pdomBinding = new PDOMCPPFieldSpecialization(pdom, parent,
(ICPPField) binding, pdomSpecialized);
} else if (binding instanceof ICPPConstructor) {
pdomBinding = new PDOMCPPConstructorSpecialization(pdom, parent,
(ICPPConstructor) binding, pdomSpecialized);
} else if (binding instanceof ICPPMethod) {
pdomBinding = new PDOMCPPMethodSpecialization(pdom, parent,
(ICPPMethod) binding, pdomSpecialized);
} else if (binding instanceof ICPPFunctionTemplate) {
if (binding instanceof ICPPConstructor) {
pdomBinding = new PDOMCPPConstructorTemplateSpecialization(
@ -333,6 +327,12 @@ class PDOMCPPLinkage extends PDOMLinkage {
pdomBinding = new PDOMCPPFunctionTemplateSpecialization(
pdom, parent, (ICPPFunctionTemplate) binding, pdomSpecialized);
}
} else if (binding instanceof ICPPConstructor) {
pdomBinding = new PDOMCPPConstructorSpecialization(pdom, parent,
(ICPPConstructor) binding, pdomSpecialized);
} else if (binding instanceof ICPPMethod) {
pdomBinding = new PDOMCPPMethodSpecialization(pdom, parent,
(ICPPMethod) binding, pdomSpecialized);
} else if (binding instanceof ICPPFunction) {
pdomBinding = new PDOMCPPFunctionSpecialization(pdom, parent,
(ICPPFunction) binding, pdomSpecialized);
@ -461,14 +461,10 @@ class PDOMCPPLinkage extends PDOMLinkage {
return CPP_FUNCTION_INSTANCE;
else if (binding instanceof ICPPClassType)
return CPP_CLASS_INSTANCE;
} else if (binding instanceof ICPPClassTemplatePartialSpecialization) {
} else if (binding instanceof ICPPClassTemplatePartialSpecialization)
return CPP_CLASS_TEMPLATE_PARTIAL_SPEC;
} else if (binding instanceof ICPPField)
else if (binding instanceof ICPPField)
return CPP_FIELD_SPECIALIZATION;
else if (binding instanceof ICPPConstructor)
return CPP_CONSTRUCTOR_SPECIALIZATION;
else if (binding instanceof ICPPMethod)
return CPP_METHOD_SPECIALIZATION;
else if (binding instanceof ICPPFunctionTemplate) {
if (binding instanceof ICPPConstructor)
return CPP_CONSTRUCTOR_TEMPLATE_SPECIALIZATION;
@ -476,7 +472,11 @@ class PDOMCPPLinkage extends PDOMLinkage {
return CPP_METHOD_TEMPLATE_SPECIALIZATION;
else if (binding instanceof ICPPFunction)
return CPP_FUNCTION_TEMPLATE_SPECIALIZATION;
} else if (binding instanceof ICPPFunction)
} else if (binding instanceof ICPPConstructor)
return CPP_CONSTRUCTOR_SPECIALIZATION;
else if (binding instanceof ICPPMethod)
return CPP_METHOD_SPECIALIZATION;
else if (binding instanceof ICPPFunction)
return CPP_FUNCTION_SPECIALIZATION;
else if (binding instanceof ICPPClassTemplate)
return CPP_CLASS_TEMPLATE_SPECIALIZATION;