Skip to content

Commit 7e0bd5b

Browse files
committed
update expected output of tests
1 parent df9a9f4 commit 7e0bd5b

File tree

44 files changed

+663
-663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+663
-663
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
| empty_block.cpp:9:10:9:11 | { ... } | Empty block without comment |
2-
| empty_block.cpp:12:10:13:3 | { ... } | Empty block without comment |
3-
| empty_block.cpp:20:10:21:3 | { ... } | Empty block without comment |
1+
| empty_block.cpp:9:10:9:11 | { ... } | Empty block without comment. |
2+
| empty_block.cpp:12:10:13:3 | { ... } | Empty block without comment. |
3+
| empty_block.cpp:20:10:21:3 | { ... } | Empty block without comment. |
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
| code2.cpp:5:6:5:7 | v1 | Variable v1 is not used |
2-
| code2.cpp:7:6:7:7 | v3 | Variable v3 is not used |
3-
| code2.cpp:11:16:11:17 | v7 | Variable v7 is not used |
4-
| code2.cpp:26:16:26:17 | v1 | Variable v1 is not used |
5-
| code2.cpp:27:16:27:17 | v2 | Variable v2 is not used |
6-
| code2.cpp:42:11:42:16 | myVar1 | Variable myVar1 is not used |
7-
| code2.cpp:64:7:64:8 | v3 | Variable v3 is not used |
8-
| code2.cpp:108:11:108:12 | v2 | Variable v2 is not used |
9-
| code2.cpp:128:9:128:9 | b | Variable b is not used |
10-
| code.c:10:18:10:18 | y | Variable y is not used |
11-
| code.c:11:18:11:18 | z | Variable z is not used |
12-
| code.c:18:7:18:7 | x | Variable x is not used |
13-
| code.c:19:10:19:10 | y | Variable y is not used |
14-
| code.c:30:45:30:45 | n | Variable n is not used |
15-
| code.c:46:6:46:6 | x | Variable x is not used |
16-
| code.c:52:8:52:8 | x | Variable x is not used |
17-
| code.c:67:6:67:9 | arr5 | Variable arr5 is not used |
18-
| code.cpp:17:18:17:18 | e | Variable e is not used |
19-
| code.cpp:32:11:32:16 | mc_ptr | Variable mc_ptr is not used |
20-
| code.cpp:33:11:33:16 | mc_ref | Variable mc_ref is not used |
21-
| code.cpp:104:16:104:24 | my_static | Variable my_static is not used |
22-
| code.cpp:104:16:104:24 | my_static | Variable my_static is not used |
23-
| code.cpp:104:16:104:24 | my_static | Variable my_static is not used |
24-
| code.cpp:132:17:132:25 | my_static | Variable my_static is not used |
25-
| code.cpp:248:16:248:18 | mmc | Variable mmc is not used |
26-
| errors.c:10:9:10:9 | x | Variable x is not used |
1+
| code2.cpp:5:6:5:7 | v1 | The value assigned to local variable 'v1' is never used. |
2+
| code2.cpp:7:6:7:7 | v3 | The value assigned to local variable 'v3' is never used. |
3+
| code2.cpp:11:16:11:17 | v7 | The value assigned to local variable 'v7' is never used. |
4+
| code2.cpp:26:16:26:17 | v1 | The value assigned to local variable 'v1' is never used. |
5+
| code2.cpp:27:16:27:17 | v2 | The value assigned to local variable 'v2' is never used. |
6+
| code2.cpp:42:11:42:16 | myVar1 | The value assigned to local variable 'myVar1' is never used. |
7+
| code2.cpp:64:7:64:8 | v3 | The value assigned to local variable 'v3' is never used. |
8+
| code2.cpp:108:11:108:12 | v2 | The value assigned to local variable 'v2' is never used. |
9+
| code2.cpp:128:9:128:9 | b | The value assigned to local variable 'b' is never used. |
10+
| code.c:10:18:10:18 | y | The value assigned to local variable 'y' is never used. |
11+
| code.c:11:18:11:18 | z | The value assigned to local variable 'z' is never used. |
12+
| code.c:18:7:18:7 | x | The value assigned to local variable 'x' is never used. |
13+
| code.c:19:10:19:10 | y | The value assigned to local variable 'y' is never used. |
14+
| code.c:30:45:30:45 | n | The value assigned to local variable 'n' is never used. |
15+
| code.c:46:6:46:6 | x | The value assigned to local variable 'x' is never used. |
16+
| code.c:52:8:52:8 | x | The value assigned to local variable 'x' is never used. |
17+
| code.c:67:6:67:9 | arr5 | The value assigned to local variable 'arr5' is never used. |
18+
| code.cpp:17:18:17:18 | e | The value assigned to local variable 'e' is never used. |
19+
| code.cpp:32:11:32:16 | mc_ptr | The value assigned to local variable 'mc_ptr' is never used. |
20+
| code.cpp:33:11:33:16 | mc_ref | The value assigned to local variable 'mc_ref' is never used. |
21+
| code.cpp:104:16:104:24 | my_static | The value assigned to local variable 'my_static' is never used. |
22+
| code.cpp:104:16:104:24 | my_static | The value assigned to local variable 'my_static' is never used. |
23+
| code.cpp:104:16:104:24 | my_static | The value assigned to local variable 'my_static' is never used. |
24+
| code.cpp:132:17:132:25 | my_static | The value assigned to local variable 'my_static' is never used. |
25+
| code.cpp:248:16:248:18 | mmc | The value assigned to local variable 'mmc' is never used. |
26+
| errors.c:10:9:10:9 | x | The value assigned to local variable 'x' is never used. |
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
| test2.cpp:37:1:37:39 | // int myFunction() { return myValue; } | This comment appears to contain commented-out code |
2-
| test2.cpp:39:1:39:45 | // int myFunction() const { return myValue; } | This comment appears to contain commented-out code |
3-
| test2.cpp:41:1:41:54 | // int myFunction() const noexcept { return myValue; } | This comment appears to contain commented-out code |
4-
| test2.cpp:43:1:43:18 | // #define MYMACRO | This comment appears to contain commented-out code |
5-
| test2.cpp:45:1:45:23 | // #include "include.h" | This comment appears to contain commented-out code |
6-
| test2.cpp:47:1:51:2 | /*\n#ifdef\nvoid myFunction();\n#endif\n*/ | This comment appears to contain commented-out code |
7-
| test2.cpp:59:1:59:24 | // #if(defined(MYMACRO)) | This comment appears to contain commented-out code |
8-
| test2.cpp:63:1:63:15 | // #pragma once | This comment appears to contain commented-out code |
9-
| test2.cpp:65:1:65:17 | // # pragma once | This comment appears to contain commented-out code |
10-
| test2.cpp:67:1:67:19 | /*#error"myerror"*/ | This comment appears to contain commented-out code |
11-
| test2.cpp:91:1:95:2 | /*\n#ifdef MYMACRO\n\t// ...\n#endif // #ifdef MYMACRO\n*/ | This comment appears to contain commented-out code |
12-
| test2.cpp:107:21:107:43 | // #include "config2.h" | This comment appears to contain commented-out code |
13-
| test2.cpp:115:16:115:35 | /* #ifdef MYMACRO */ | This comment appears to contain commented-out code |
14-
| test2.cpp:117:1:117:24 | // commented_out_code(); | This comment appears to contain commented-out code |
15-
| test2.cpp:120:2:120:25 | // commented_out_code(); | This comment appears to contain commented-out code |
16-
| test.c:2:1:2:22 | // commented out code; | This comment appears to contain commented-out code |
17-
| test.c:4:1:7:8 | // some; | This comment appears to contain commented-out code |
18-
| test.c:9:1:13:8 | // also; | This comment appears to contain commented-out code |
19-
| test.c:21:1:26:2 | /*\n some;\n commented;\n out;\n code;\n*/ | This comment appears to contain commented-out code |
20-
| test.c:28:1:34:2 | /*\n also;\n this\n is;\n commented-out\n code;\n*/ | This comment appears to contain commented-out code |
1+
| test2.cpp:37:1:37:39 | // int myFunction() { return myValue; } | This comment appears to contain commented-out code. |
2+
| test2.cpp:39:1:39:45 | // int myFunction() const { return myValue; } | This comment appears to contain commented-out code. |
3+
| test2.cpp:41:1:41:54 | // int myFunction() const noexcept { return myValue; } | This comment appears to contain commented-out code. |
4+
| test2.cpp:43:1:43:18 | // #define MYMACRO | This comment appears to contain commented-out code. |
5+
| test2.cpp:45:1:45:23 | // #include "include.h" | This comment appears to contain commented-out code. |
6+
| test2.cpp:47:1:51:2 | /*\n#ifdef\nvoid myFunction();\n#endif\n*/ | This comment appears to contain commented-out code. |
7+
| test2.cpp:59:1:59:24 | // #if(defined(MYMACRO)) | This comment appears to contain commented-out code. |
8+
| test2.cpp:63:1:63:15 | // #pragma once | This comment appears to contain commented-out code. |
9+
| test2.cpp:65:1:65:17 | // # pragma once | This comment appears to contain commented-out code. |
10+
| test2.cpp:67:1:67:19 | /*#error"myerror"*/ | This comment appears to contain commented-out code. |
11+
| test2.cpp:91:1:95:2 | /*\n#ifdef MYMACRO\n\t// ...\n#endif // #ifdef MYMACRO\n*/ | This comment appears to contain commented-out code. |
12+
| test2.cpp:107:21:107:43 | // #include "config2.h" | This comment appears to contain commented-out code. |
13+
| test2.cpp:115:16:115:35 | /* #ifdef MYMACRO */ | This comment appears to contain commented-out code. |
14+
| test2.cpp:117:1:117:24 | // commented_out_code(); | This comment appears to contain commented-out code. |
15+
| test2.cpp:120:2:120:25 | // commented_out_code(); | This comment appears to contain commented-out code. |
16+
| test.c:2:1:2:22 | // commented out code; | This comment appears to contain commented-out code. |
17+
| test.c:4:1:7:8 | // some; | This comment appears to contain commented-out code. |
18+
| test.c:9:1:13:8 | // also; | This comment appears to contain commented-out code. |
19+
| test.c:21:1:26:2 | /*\n some;\n commented;\n out;\n code;\n*/ | This comment appears to contain commented-out code. |
20+
| test.c:28:1:34:2 | /*\n also;\n this\n is;\n commented-out\n code;\n*/ | This comment appears to contain commented-out code. |
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
| bsc.cpp:2:10:2:32 | ... > ... | Potential unsafe sign check of a bitwise operation. |
2-
| bsc.cpp:6:10:6:32 | ... > ... | Potential unsafe sign check of a bitwise operation. |
3-
| bsc.cpp:18:10:18:28 | ... > ... | Potential unsafe sign check of a bitwise operation. |
4-
| bsc.cpp:22:10:22:28 | ... < ... | Potential unsafe sign check of a bitwise operation. |
1+
| bsc.cpp:2:10:2:32 | ... > ... | Sign check of a bitwise operation. |
2+
| bsc.cpp:6:10:6:32 | ... > ... | Sign check of a bitwise operation. |
3+
| bsc.cpp:18:10:18:28 | ... > ... | Sign check of a bitwise operation. |
4+
| bsc.cpp:22:10:22:28 | ... < ... | Sign check of a bitwise operation. |
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
| c.c:10:5:10:10 | ... == ... | Equality test on floating point values may not behave as expected. |
2-
| c.c:14:5:14:14 | ... == ... | Equality test on floating point values may not behave as expected. |
3-
| c.c:16:5:16:12 | ... == ... | Equality test on floating point values may not behave as expected. |
4-
| c.c:17:5:17:12 | ... == ... | Equality test on floating point values may not behave as expected. |
1+
| c.c:10:5:10:10 | ... == ... | Equality checks on floating point values can yield unexpected results. |
2+
| c.c:14:5:14:14 | ... == ... | Equality checks on floating point values can yield unexpected results. |
3+
| c.c:16:5:16:12 | ... == ... | Equality checks on floating point values can yield unexpected results. |
4+
| c.c:17:5:17:12 | ... == ... | Equality checks on floating point values can yield unexpected results. |
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
| TodoComments.cs:4:5:4:26 | // ... | TODO comment. |
2-
| TodoComments.cs:5:5:5:27 | // ... | TODO comment. |
3-
| TodoCommentsBad.cs:7:9:7:41 | // ... | TODO comment. |
1+
| TodoComments.cs:4:5:4:26 | // ... | TODO comments should be addressed. |
2+
| TodoComments.cs:5:5:5:27 | // ... | TODO comments should be addressed. |
3+
| TodoCommentsBad.cs:7:9:7:41 | // ... | TODO comments should be addressed. |
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
| EmptyBlock.cs:9:9:10:9 | {...} | Empty block. |
2-
| EmptyBlock.cs:26:9:27:9 | {...} | Empty block. |
3-
| EmptyBlock.cs:48:9:49:9 | {...} | Empty block. |
1+
| EmptyBlock.cs:9:9:10:9 | {...} | Empty block without comment. |
2+
| EmptyBlock.cs:26:9:27:9 | {...} | Empty block without comment. |
3+
| EmptyBlock.cs:48:9:49:9 | {...} | Empty block without comment. |
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
| ContainerLengthCmpOffByOne.cs:8:25:8:40 | ... <= ... | Off-by-one index comparison against length leads to possible out of bounds $@. | ContainerLengthCmpOffByOne.cs:10:31:10:37 | access to array element | access to array element |
2-
| ContainerLengthCmpOffByOne.cs:14:25:14:40 | ... >= ... | Off-by-one index comparison against length leads to possible out of bounds $@. | ContainerLengthCmpOffByOne.cs:16:31:16:37 | access to array element | access to array element |
3-
| ContainerLengthCmpOffByOne.cs:27:13:27:28 | ... <= ... | Off-by-one index comparison against length leads to possible out of bounds $@. | ContainerLengthCmpOffByOne.cs:29:31:29:37 | access to array element | access to array element |
4-
| ContainerLengthCmpOffByOne.cs:33:13:33:28 | ... >= ... | Off-by-one index comparison against length leads to possible out of bounds $@. | ContainerLengthCmpOffByOne.cs:35:31:35:37 | access to array element | access to array element |
1+
| ContainerLengthCmpOffByOne.cs:8:25:8:40 | ... <= ... | Off-by-one index comparison against length may lead to out-of-bounds $@. | ContainerLengthCmpOffByOne.cs:10:31:10:37 | access to array element | access to array element |
2+
| ContainerLengthCmpOffByOne.cs:14:25:14:40 | ... >= ... | Off-by-one index comparison against length may lead to out-of-bounds $@. | ContainerLengthCmpOffByOne.cs:16:31:16:37 | access to array element | access to array element |
3+
| ContainerLengthCmpOffByOne.cs:27:13:27:28 | ... <= ... | Off-by-one index comparison against length may lead to out-of-bounds $@. | ContainerLengthCmpOffByOne.cs:29:31:29:37 | access to array element | access to array element |
4+
| ContainerLengthCmpOffByOne.cs:33:13:33:28 | ... >= ... | Off-by-one index comparison against length may lead to out-of-bounds $@. | ContainerLengthCmpOffByOne.cs:35:31:35:37 | access to array element | access to array element |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| UncheckedCastInEquals.cs:7:17:7:27 | (...) ... | Missing type-check before casting parameter to 'Equals'. |
1+
| UncheckedCastInEquals.cs:7:17:7:27 | (...) ... | Equals() method does not seem to check argument type. |

csharp/ql/test/query-tests/Security Features/CWE-730/RegexInjection/RegexInjection.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ nodes
88
| RegexInjection.cs:14:19:14:23 | access to local variable regex | semmle.label | access to local variable regex |
99
subpaths
1010
#select
11-
| RegexInjection.cs:14:19:14:23 | access to local variable regex | RegexInjection.cs:10:24:10:46 | access to property QueryString : NameValueCollection | RegexInjection.cs:14:19:14:23 | access to local variable regex | $@ flows to the construction of a regular expression. | RegexInjection.cs:10:24:10:46 | access to property QueryString | User-provided value |
11+
| RegexInjection.cs:14:19:14:23 | access to local variable regex | RegexInjection.cs:10:24:10:46 | access to property QueryString : NameValueCollection | RegexInjection.cs:14:19:14:23 | access to local variable regex | This regular expression is constructed from a $@. | RegexInjection.cs:10:24:10:46 | access to property QueryString | user-provided value |

0 commit comments

Comments
 (0)