1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +02:00

Code streamlining.

Change-Id: I813c84d316a15727e45293849c21577565fa4afa
This commit is contained in:
Sergey Prigogin 2017-03-13 15:55:41 -07:00
parent 902aae8fcf
commit 87ce31e19e

View file

@ -992,7 +992,7 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa
// foo(a);
// }
public void testFunctionInstanceParameters() throws Exception {
IBinding b0= getBindingFromASTName("foo(a)", 3);
IBinding b0= getBindingFromFirstIdentifier("foo(a)");
assertInstance(b0, ICPPTemplateInstance.class);
assertInstance(b0, ICPPFunction.class);
@ -1033,7 +1033,7 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa
// func(&a, &A::m);
// }
public void testFunctionTemplate_245030() throws Exception {
ICPPFunction f= getBindingFromASTName("func(&a, &A::m)", 4, ICPPFunction.class);
ICPPFunction f= getBindingFromFirstIdentifier("func(&a, &A::m)");
assertInstance(f, ICPPTemplateInstance.class);
}
@ -1054,7 +1054,7 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa
// func(a, b);
// }
public void testFunctionTemplate_319498() throws Exception {
ICPPFunction f= getBindingFromASTName("func(a, b)", 4, ICPPFunction.class);
ICPPFunction f= getBindingFromFirstIdentifier("func(a, b)");
assertInstance(f, ICPPTemplateInstance.class);
}