mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Corrected few comments.
This commit is contained in:
parent
300a9b0807
commit
fcccfe3807
3 changed files with 5 additions and 6 deletions
|
@ -1773,7 +1773,7 @@ public abstract class IndexCPPBindingResolutionTest extends IndexBindingResoluti
|
||||||
// int test() {
|
// int test() {
|
||||||
// foo(1);
|
// foo(1);
|
||||||
// }
|
// }
|
||||||
public void testInheritingConstructor() throws Exception {
|
public void testInheritedConstructor() throws Exception {
|
||||||
checkBindings();
|
checkBindings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1791,7 +1791,7 @@ public abstract class IndexCPPBindingResolutionTest extends IndexBindingResoluti
|
||||||
// int test() {
|
// int test() {
|
||||||
// foo(1);
|
// foo(1);
|
||||||
// }
|
// }
|
||||||
public void testInheritingConstructorWithTemplate_1() throws Exception {
|
public void testInheritedConstructorFromTemplateInstance() throws Exception {
|
||||||
checkBindings();
|
checkBindings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1809,7 +1809,7 @@ public abstract class IndexCPPBindingResolutionTest extends IndexBindingResoluti
|
||||||
// int test() {
|
// int test() {
|
||||||
// foo(1);
|
// foo(1);
|
||||||
// }
|
// }
|
||||||
public void testInheritingConstructorWithTemplate_2() throws Exception {
|
public void testInheritedConstructorFromUnknownClass() throws Exception {
|
||||||
checkBindings();
|
checkBindings();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -198,7 +198,7 @@ public class CPPClassScope extends CPPScope implements ICPPClassScope {
|
||||||
ICPPConstructor[] ctors = ClassTypeHelper.getConstructors((ICPPClassType) baseClass, point);
|
ICPPConstructor[] ctors = ClassTypeHelper.getConstructors((ICPPClassType) baseClass, point);
|
||||||
for (ICPPConstructor ctor : ctors) {
|
for (ICPPConstructor ctor : ctors) {
|
||||||
ICPPParameter[] prototypeParams = ctor.getParameters();
|
ICPPParameter[] prototypeParams = ctor.getParameters();
|
||||||
// 19.9-1 For each non-template constructor of X that has at least one parameter
|
// 12.9-1 For each non-template constructor of X that has at least one parameter
|
||||||
// with a default argument, the set of constructors that results from omitting
|
// with a default argument, the set of constructors that results from omitting
|
||||||
// any ellipsis parameter specification and successively omitting parameters
|
// any ellipsis parameter specification and successively omitting parameters
|
||||||
// with a default argument from the end of the parameter-type-list.
|
// with a default argument from the end of the parameter-type-list.
|
||||||
|
|
|
@ -21,8 +21,7 @@ import org.eclipse.cdt.core.dom.ast.cpp.ICPPParameter;
|
||||||
import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPVisitor;
|
import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPVisitor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Binding for implicit constructors (default and copy constructor).
|
* Binding for a constructor inherited from a base class (12.9).
|
||||||
* 12.9
|
|
||||||
*/
|
*/
|
||||||
public class CPPInheritedConstructor extends CPPImplicitMethod implements ICPPConstructor {
|
public class CPPInheritedConstructor extends CPPImplicitMethod implements ICPPConstructor {
|
||||||
private final ICPPConstructor prototype;
|
private final ICPPConstructor prototype;
|
||||||
|
|
Loading…
Add table
Reference in a new issue