1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Default values for template template parameters, bug 262368.

This commit is contained in:
Markus Schorn 2009-01-27 16:58:16 +00:00
parent 0ce1436bdc
commit 4b2bac441c
2 changed files with 4 additions and 15 deletions

View file

@ -3685,7 +3685,7 @@ public class AST2TemplateTests extends AST2BaseTest {
// void test(BasicString<char> s) {
// s.substr(0);
// }
public void _testResolutionOfUnknownBindings_262328() throws Exception {
public void testResolutionOfUnknownBindings_262328() throws Exception {
BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), true);
bh.assertNonProblem("substr(0)", 6, ICPPMethod.class);
}

View file

@ -1,12 +1,12 @@
/*******************************************************************************
* Copyright (c) 2005, 2008 IBM Corporation and others.
* Copyright (c) 2005, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Andrew Niefer (IBM Corporation) - initial API and implementation
* Markus Schorn (Wind River Systems)
* Sergey Prigogin (Google)
*******************************************************************************/
@ -41,7 +41,7 @@ import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPTemplates;
import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPVisitor;
/**
* @author aniefer
* A template template parameter.
*/
public class CPPTemplateTemplateParameter extends CPPTemplateParameter implements
ICPPTemplateTemplateParameter, ICPPClassType, ICPPInternalTemplate, ICPPUnknownBinding,
@ -51,9 +51,6 @@ public class CPPTemplateTemplateParameter extends CPPTemplateParameter implement
private ObjectMap instances;
private ICPPScope unknownScope;
/**
* @param name
*/
public CPPTemplateTemplateParameter(IASTName name) {
super(name);
}
@ -154,14 +151,6 @@ public class CPPTemplateTemplateParameter extends CPPTemplateParameter implement
return null;
}
@Override
public void addDefinition(IASTNode node) {
}
@Override
public void addDeclaration(IASTNode node) {
}
public boolean isSameType(IType type) {
if (type == this)
return true;