C++: Remove duplication-tests directory since we no longer detect duplication.

This commit is contained in:
Mathias Vorreiter Pedersen
2020-11-24 10:10:31 +01:00
parent 2cf10a7658
commit 8bd14c5af6
13 changed files with 0 additions and 102 deletions

View File

@@ -1,12 +0,0 @@
int x = int();
float y = float();
double z = double();
/* This produces a getValueText() of 0 for R() in line 9, which is debatable. */
struct R {};
struct S {
S() : S(R()) { }
S(R) { }
};
S s;

View File

@@ -1,4 +0,0 @@
| constants.cpp:2:9:2:13 | 0 | int() |
| constants.cpp:3:11:3:17 | 0.0 | float() |
| constants.cpp:4:12:4:19 | 0.0 | double() |
| constants.cpp:9:11:9:13 | 0 | 0 |

View File

@@ -1,4 +0,0 @@
import cpp
from Expr e
select e, e.getValueText()

View File

@@ -1,2 +0,0 @@
| duplicate_functions.cpp:0:0:0:0 | duplicate_functions.cpp | 42 |
| file://:0:0:0:0 | | 0 |

View File

@@ -1 +0,0 @@
Metrics/Files/FLinesOfDuplicatedCode.ql

View File

@@ -1,47 +0,0 @@
int x;
void Void1()
{
x = 0;
x = 1;
x = 2;
x = 3;
x = 4;
x = 5;
x = 6;
}
void Void2()
{
x = 0;
x = 1;
x = 2;
x = 3;
x = 4;
x = 5;
x = 6;
}
int Int1()
{
x = 0;
++x;
++x;
--x;
--x;
++x;
--x;
return x;
}
int Int2()
{
x = 0;
++x;
++x;
--x;
--x;
++x;
--x;
return x;
}

View File

@@ -1,4 +0,0 @@
| duplicate_functions.cpp:3:6:3:10 | definition of Void1 | Function Void1 is duplicated at $@. | duplicate_functions.cpp:14:6:14:10 | definition of Void2 | duplicate_functions.cpp:14 |
| duplicate_functions.cpp:14:6:14:10 | definition of Void2 | Function Void2 is duplicated at $@. | duplicate_functions.cpp:3:6:3:10 | definition of Void1 | duplicate_functions.cpp:3 |
| duplicate_functions.cpp:25:5:25:8 | definition of Int1 | Function Int1 is duplicated at $@. | duplicate_functions.cpp:37:5:37:8 | definition of Int2 | duplicate_functions.cpp:37 |
| duplicate_functions.cpp:37:5:37:8 | definition of Int2 | Function Int2 is duplicated at $@. | duplicate_functions.cpp:25:5:25:8 | definition of Int1 | duplicate_functions.cpp:25 |

View File

@@ -1 +0,0 @@
external/DuplicateFunction.ql

View File

@@ -1,2 +0,0 @@
| test.c:0:0:0:0 | test.c | 10 |
| file://:0:0:0:0 | | 0 |

View File

@@ -1 +0,0 @@
Metrics/Files/FLinesOfDuplicatedCode.ql

View File

@@ -1,5 +0,0 @@
import cpp
// Provided tokenisation succeeded, we ought to have some
// @duplication rows.
select count(@duplication d)

View File

@@ -1,18 +0,0 @@
#define foo "/*bar"
#define bar aaa \ bbb
int i;
void f(void) {
i = 1;
i = 2;
i = 3;
}
void g(void) {
i = 1;
i = 2;
i = 3;
}