mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
C++: Remove duplication-tests directory since we no longer detect duplication.
This commit is contained in:
@@ -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;
|
||||
@@ -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 |
|
||||
@@ -1,4 +0,0 @@
|
||||
import cpp
|
||||
|
||||
from Expr e
|
||||
select e, e.getValueText()
|
||||
@@ -1,2 +0,0 @@
|
||||
| duplicate_functions.cpp:0:0:0:0 | duplicate_functions.cpp | 42 |
|
||||
| file://:0:0:0:0 | | 0 |
|
||||
@@ -1 +0,0 @@
|
||||
Metrics/Files/FLinesOfDuplicatedCode.ql
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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 |
|
||||
@@ -1 +0,0 @@
|
||||
external/DuplicateFunction.ql
|
||||
@@ -1,2 +0,0 @@
|
||||
| test.c:0:0:0:0 | test.c | 10 |
|
||||
| file://:0:0:0:0 | | 0 |
|
||||
@@ -1 +0,0 @@
|
||||
Metrics/Files/FLinesOfDuplicatedCode.ql
|
||||
@@ -1 +0,0 @@
|
||||
| 2 |
|
||||
@@ -1,5 +0,0 @@
|
||||
import cpp
|
||||
|
||||
// Provided tokenisation succeeded, we ought to have some
|
||||
// @duplication rows.
|
||||
select count(@duplication d)
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user