CPP: Additional test cases.

This commit is contained in:
Geoffrey White
2019-05-01 10:58:03 +01:00
parent 707c9965af
commit efa3c77db5
2 changed files with 30 additions and 0 deletions

View File

@@ -56,3 +56,29 @@ struct MyParticle {
class texture *tex;
float u1, v1, u2, v2;
};
struct MyAlphaClass1 {
int a1, b1, c1, d1, e1, f1, g1, h1, i1, j1;
int k1, l1, m1, n1, o1, p1, q1, r1, s1, t1;
int u1, v1, w1, x1, y1, z1;
// ...
// ...
// ...
int a2, b2, c2, d2, e2, f2, g2, h2, i2, j2;
int k2, l2, m2, n2, o2, p2, q2, r2, s2, t2;
int u2, v2, w2, x2, y2, z2;
};
struct MyAlphaClass2 {
int x;
// ...
// ...
// ...
int a1, b1, c1, d1, e1, f1, g1, h1, i1, j1;
int k1, l1, m1, n1, o1, p1, q1, r1, s1, t1;
int u1, v1, w1, x1, y1, z1;
};

View File

@@ -3,5 +3,9 @@
| cwmf.cpp:24:3:25:12 | dd<T> | Template class dd<T> has 20 fields; we suggest refactoring to 15 fields or fewer. | cwmf.cpp:24:3:25:12 | group of 20 fields here | group of 20 fields here |
| cwmf.cpp:30:3:31:12 | ee<U> | Template class ee<U> has 20 fields; we suggest refactoring to 15 fields or fewer. | cwmf.cpp:30:3:31:12 | group of 20 fields here | group of 20 fields here |
| cwmf.cpp:41:8:57:22 | MyParticle | Struct MyParticle has 30 fields; we suggest refactoring to 15 fields or fewer. | cwmf.cpp:41:8:57:22 | group of 30 fields here | group of 30 fields here |
| cwmf.cpp:60:8:60:20 | MyAlphaClass1 | Struct MyAlphaClass1 has 52 fields; we suggest refactoring to 15 fields or fewer - see $@. | cwmf.cpp:61:7:63:28 | group of 26 fields here | group of 26 fields here |
| cwmf.cpp:60:8:60:20 | MyAlphaClass1 | Struct MyAlphaClass1 has 52 fields; we suggest refactoring to 15 fields or fewer - see $@. | cwmf.cpp:69:7:71:28 | group of 26 fields here | group of 26 fields here |
| cwmf.cpp:74:8:74:20 | MyAlphaClass2 | Struct MyAlphaClass2 has 27 fields; we suggest refactoring to 15 fields or fewer - see $@. | cwmf.cpp:75:7:75:7 | declaration of x | declaration of x |
| cwmf.cpp:74:8:74:20 | MyAlphaClass2 | Struct MyAlphaClass2 has 27 fields; we suggest refactoring to 15 fields or fewer - see $@. | cwmf.cpp:81:7:83:28 | group of 26 fields here | group of 26 fields here |
| different_types.h:15:15:33:10 | DifferentTypes2 | Class DifferentTypes2 has 18 fields; we suggest refactoring to 15 fields or fewer. | different_types.h:15:15:33:10 | group of 18 fields here | group of 18 fields here |
| different_types.h:15:15:33:10 | DifferentTypes2 | Class DifferentTypes2 has 18 fields; we suggest refactoring to 15 fields or fewer. | different_types.h:15:15:33:10 | group of 18 fields here | group of 18 fields here |