mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 17:55:39 +02:00
Patch for Bryan 178037 - temporary fix for CCE.
This commit is contained in:
parent
f40d094fa6
commit
671996ba37
1 changed files with 12 additions and 5 deletions
|
@ -55,11 +55,18 @@ 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);
|
||||||
if (paramNode != null && argNode != null) {
|
/* TODO: allow template non-type parameters once they have been
|
||||||
paramList.addMember(paramNode);
|
* implemented in the PDOM
|
||||||
argList.addMember(argNode);
|
*/
|
||||||
|
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) {
|
||||||
|
paramList.addMember(paramNode);
|
||||||
|
argList.addMember(argNode);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue