1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-11 02:05:39 +02:00

Patch for Bryan 178037 - temporary fix for CCE.

This commit is contained in:
Doug Schaefer 2007-03-20 18:57:26 +00:00
parent f40d094fa6
commit 671996ba37

View file

@ -55,14 +55,21 @@ abstract class PDOMCPPSpecialization extends PDOMCPPBinding implements
ObjectMap argMap = ((ICPPSpecialization)spec).getArgumentMap(); ObjectMap argMap = ((ICPPSpecialization)spec).getArgumentMap();
if (argMap != null) { if (argMap != null) {
for (int i = 0; i < argMap.size(); i++) { for (int i = 0; i < argMap.size(); i++) {
PDOMNode paramNode = getLinkageImpl().addType(this, (IType) argMap.keyAt(i)); Object param = argMap.keyAt(i);
PDOMNode argNode = getLinkageImpl().addType(this, (IType) argMap.getAt(i)); Object arg = argMap.getAt(i);
/* TODO: allow template non-type parameters once they have been
* implemented in the PDOM
*/
if (param instanceof IType && arg instanceof IType) {
PDOMNode paramNode = getLinkageImpl().addType(this, (IType) param);
PDOMNode argNode = getLinkageImpl().addType(this, (IType) arg);
if (paramNode != null && argNode != null) { if (paramNode != null && argNode != null) {
paramList.addMember(paramNode); paramList.addMember(paramNode);
argList.addMember(argNode); argList.addMember(argNode);
} }
} }
} }
}
try { try {
Integer memento = PDOMCPPOverloaderUtil.getSignatureMemento(spec); Integer memento = PDOMCPPOverloaderUtil.getSignatureMemento(spec);
pdom.getDB().putInt(record + SIGNATURE_MEMENTO, memento != null ? memento.intValue() : 0); pdom.getDB().putInt(record + SIGNATURE_MEMENTO, memento != null ? memento.intValue() : 0);