mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 12:55:40 +02:00
Cosmetics.
This commit is contained in:
parent
ead5d54e4b
commit
e83e8a688b
1 changed files with 22 additions and 22 deletions
|
@ -328,16 +328,16 @@ public class AST2CPPTests extends AST2TestBase {
|
||||||
parseAndCheckBindings();
|
parseAndCheckBindings();
|
||||||
}
|
}
|
||||||
|
|
||||||
// int *p1; int *p2;
|
// int *p1; int *p2;
|
||||||
// union {
|
// union {
|
||||||
// struct {int a; int b;} A;
|
// struct {int a; int b;} A;
|
||||||
// struct {int a; int b;};
|
// struct {int a; int b;};
|
||||||
// } MyStruct;
|
// } MyStruct;
|
||||||
// void test (void) {
|
// void test (void) {
|
||||||
// p1 = &MyStruct.A.a;
|
// p1 = &MyStruct.A.a;
|
||||||
// p2 = &MyStruct.b;
|
// p2 = &MyStruct.b;
|
||||||
// MyStruct.b = 1;
|
// MyStruct.b = 1;
|
||||||
// }
|
// }
|
||||||
public void testBug78103() throws Exception {
|
public void testBug78103() throws Exception {
|
||||||
parseAndCheckBindings(getAboveComment());
|
parseAndCheckBindings(getAboveComment());
|
||||||
}
|
}
|
||||||
|
@ -347,7 +347,7 @@ public class AST2CPPTests extends AST2TestBase {
|
||||||
// B(int t);
|
// B(int t);
|
||||||
// };
|
// };
|
||||||
// class A : public B {
|
// class A : public B {
|
||||||
// public:
|
// public:
|
||||||
// A(int t);
|
// A(int t);
|
||||||
// };
|
// };
|
||||||
// A::A(int t) : B(t - 1) {}
|
// A::A(int t) : B(t - 1) {}
|
||||||
|
@ -401,12 +401,12 @@ public class AST2CPPTests extends AST2TestBase {
|
||||||
assertTrue(es.getExpression() instanceof IASTFunctionCallExpression);
|
assertTrue(es.getExpression() instanceof IASTFunctionCallExpression);
|
||||||
}
|
}
|
||||||
|
|
||||||
// #define CURLOPTTYPE_OBJECTPOINT 10000
|
// #define CURLOPTTYPE_OBJECTPOINT 10000
|
||||||
// #define CINIT(name,type,number) CURLOPT_ ## name = CURLOPTTYPE_ ## type + number
|
// #define CINIT(name,type,number) CURLOPT_ ## name = CURLOPTTYPE_ ## type + number
|
||||||
// typedef enum {
|
// typedef enum {
|
||||||
// CINIT(FILE, OBJECTPOINT, 1),
|
// CINIT(FILE, OBJECTPOINT, 1),
|
||||||
// CINIT(URL, OBJECTPOINT, 2)
|
// CINIT(URL, OBJECTPOINT, 2)
|
||||||
// } CURLoption ;
|
// } CURLoption;
|
||||||
public void testBug102825() throws Exception {
|
public void testBug102825() throws Exception {
|
||||||
parseAndCheckBindings(getAboveComment());
|
parseAndCheckBindings(getAboveComment());
|
||||||
}
|
}
|
||||||
|
@ -2884,11 +2884,11 @@ public class AST2CPPTests extends AST2TestBase {
|
||||||
assertNotNull(whileStatement.getConditionDeclaration());
|
assertNotNull(whileStatement.getConditionDeclaration());
|
||||||
}
|
}
|
||||||
|
|
||||||
// void foo() {
|
// void foo() {
|
||||||
// const int x = 12;
|
// const int x = 12;
|
||||||
// { enum { x = x }; }
|
// { enum { x = x }; }
|
||||||
// }
|
// }
|
||||||
// enum { RED };
|
// enum { RED };
|
||||||
public void testBug86353() throws Exception {
|
public void testBug86353() throws Exception {
|
||||||
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
IASTTranslationUnit tu = parse(getAboveComment(), CPP);
|
||||||
NameCollector col = new NameCollector();
|
NameCollector col = new NameCollector();
|
||||||
|
|
Loading…
Add table
Reference in a new issue