mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 18:56:02 +02:00
Cosmetics.
This commit is contained in:
parent
cc789a1979
commit
32b0c2c73c
1 changed files with 14 additions and 14 deletions
|
@ -129,7 +129,7 @@ public class AST2TemplateTests extends AST2TestBase {
|
||||||
|
|
||||||
protected IASTTranslationUnit parseAndCheckImplicitNameBindings() throws Exception {
|
protected IASTTranslationUnit parseAndCheckImplicitNameBindings() throws Exception {
|
||||||
IASTTranslationUnit tu = parse(getAboveComment(), CPP, false, true);
|
IASTTranslationUnit tu = parse(getAboveComment(), CPP, false, true);
|
||||||
NameCollector col = new NameCollector(true /* visit implicit names */);
|
NameCollector col = new NameCollector(true /* Visit implicit names */);
|
||||||
tu.accept(col);
|
tu.accept(col);
|
||||||
assertNoProblemBindings(col);
|
assertNoProblemBindings(col);
|
||||||
return tu;
|
return tu;
|
||||||
|
@ -406,7 +406,7 @@ public class AST2TemplateTests extends AST2TestBase {
|
||||||
// const int *p;
|
// const int *p;
|
||||||
// f(p); //calls f(const T *) , 3 is more specialized than 1 or 2
|
// f(p); //calls f(const T *) , 3 is more specialized than 1 or 2
|
||||||
// }
|
// }
|
||||||
public void test_14_5_5_2s5_OrderingFunctionTemplates_a() throws Exception{
|
public void test14_5_5_2s5_OrderingFunctionTemplates_a() throws Exception{
|
||||||
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
||||||
NameCollector col = new NameCollector();
|
NameCollector col = new NameCollector();
|
||||||
tu.accept(col);
|
tu.accept(col);
|
||||||
|
@ -430,7 +430,7 @@ public class AST2TemplateTests extends AST2TestBase {
|
||||||
// float x;
|
// float x;
|
||||||
// f(x); //ambiguous 1 or 2
|
// f(x); //ambiguous 1 or 2
|
||||||
// }
|
// }
|
||||||
public void test_14_5_5_2s5_OrderingFunctionTemplates_b() throws Exception{
|
public void test14_5_5_2s5_OrderingFunctionTemplates_b() throws Exception{
|
||||||
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
||||||
NameCollector col = new NameCollector();
|
NameCollector col = new NameCollector();
|
||||||
tu.accept(col);
|
tu.accept(col);
|
||||||
|
@ -513,7 +513,7 @@ public class AST2TemplateTests extends AST2TestBase {
|
||||||
// A <int, char*, 5> a3; //uses #4, T is char
|
// A <int, char*, 5> a3; //uses #4, T is char
|
||||||
// A <int, char*, 1> a4; //uses #5, T is int, T2 is char, I is1
|
// A <int, char*, 1> a4; //uses #5, T is int, T2 is char, I is1
|
||||||
// A <int*, int*, 2> a5; //ambiguous, matches #3 & #5.
|
// A <int*, int*, 2> a5; //ambiguous, matches #3 & #5.
|
||||||
public void test_14_5_4_1s2_MatchingTemplateSpecializations() throws Exception{
|
public void test14_5_4_1s2_MatchingTemplateSpecializations() throws Exception{
|
||||||
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
||||||
NameCollector col = new NameCollector();
|
NameCollector col = new NameCollector();
|
||||||
tu.accept(col);
|
tu.accept(col);
|
||||||
|
@ -573,7 +573,7 @@ public class AST2TemplateTests extends AST2TestBase {
|
||||||
|
|
||||||
// template<class T> void f(T*);
|
// template<class T> void f(T*);
|
||||||
// void g(int* p) { f(p); }
|
// void g(int* p) { f(p); }
|
||||||
public void test_14_5_5_1_FunctionTemplates_a() throws Exception {
|
public void test14_5_5_1_FunctionTemplates_a() throws Exception {
|
||||||
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
||||||
NameCollector col = new NameCollector();
|
NameCollector col = new NameCollector();
|
||||||
tu.accept(col);
|
tu.accept(col);
|
||||||
|
@ -587,7 +587,7 @@ public class AST2TemplateTests extends AST2TestBase {
|
||||||
|
|
||||||
// template<class T> void f(T);
|
// template<class T> void f(T);
|
||||||
// void g(int* p) { f(p); }
|
// void g(int* p) { f(p); }
|
||||||
public void test_14_5_5_1_FunctionTemplates_b() throws Exception {
|
public void test14_5_5_1_FunctionTemplates_b() throws Exception {
|
||||||
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
||||||
NameCollector col = new NameCollector();
|
NameCollector col = new NameCollector();
|
||||||
tu.accept(col);
|
tu.accept(col);
|
||||||
|
@ -603,7 +603,7 @@ public class AST2TemplateTests extends AST2TestBase {
|
||||||
// void g(){
|
// void g(){
|
||||||
// int i = f<int>(5); // Y is int
|
// int i = f<int>(5); // Y is int
|
||||||
// }
|
// }
|
||||||
public void test_14_8_1s2_FunctionTemplates() throws Exception {
|
public void test14_8_1s2_FunctionTemplates() throws Exception {
|
||||||
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
||||||
NameCollector col = new NameCollector();
|
NameCollector col = new NameCollector();
|
||||||
tu.accept(col);
|
tu.accept(col);
|
||||||
|
@ -687,7 +687,7 @@ public class AST2TemplateTests extends AST2TestBase {
|
||||||
// f(&a); //call f<int>(int*)
|
// f(&a); //call f<int>(int*)
|
||||||
// f(&b); //call f<char*>(char**)
|
// f(&b); //call f<char*>(char**)
|
||||||
// }
|
// }
|
||||||
public void test14_8s2_() throws Exception {
|
public void test14_8s2() throws Exception {
|
||||||
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
||||||
NameCollector col = new NameCollector();
|
NameCollector col = new NameCollector();
|
||||||
tu.accept(col);
|
tu.accept(col);
|
||||||
|
|
Loading…
Add table
Reference in a new issue