Skip to content

Commit 3dc266e

Browse files
authored
Merge pull request #1220 from MathiasVP/update-queries-after-23116
C++: Accept regressions after github/codeql#23116 conflation fixes.
2 parents dda87f4 + c948efe commit 3dc266e

12 files changed

Lines changed: 51 additions & 63 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
| test.cpp:14:24:14:26 | sp3 | The ownership of shared_ptr $@ is not shared within or passed out of the local scope of function $@. | test.cpp:14:24:14:26 | sp3 | sp3 | test.cpp:11:22:11:23 | f1 | f1 |
22
| test.cpp:16:24:16:26 | sp5 | The ownership of shared_ptr $@ is not shared within or passed out of the local scope of function $@. | test.cpp:16:24:16:26 | sp5 | sp5 | test.cpp:11:22:11:23 | f1 | f1 |
33
| test.cpp:17:24:17:26 | sp6 | The ownership of shared_ptr $@ is not shared within or passed out of the local scope of function $@. | test.cpp:17:24:17:26 | sp6 | sp6 | test.cpp:11:22:11:23 | f1 | f1 |
4+
| test.cpp:18:24:18:26 | sp7 | The ownership of shared_ptr $@ is not shared within or passed out of the local scope of function $@. | test.cpp:18:24:18:26 | sp7 | sp7 | test.cpp:11:22:11:23 | f1 | f1 |

‎cpp/autosar/test/rules/A20-8-4/test.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ std::shared_ptr<int> f1() {
1515
std::shared_ptr<int> sp4 = std::make_shared<int>(0); // COMPLIANT
1616
std::shared_ptr<int> sp5 = std::make_shared<int>(0); // NON_COMPLIANT
1717
std::shared_ptr<int> sp6; // NON_COMPLIANT
18-
std::shared_ptr<int> sp7; // COMPLIANT
18+
std::shared_ptr<int> sp7; // COMPLIANT [FALSE POSITIVE]
1919

2020
shared_ptr_obj_param(sp1);
2121
shared_ptr_ref_param(sp2);

‎cpp/cert/test/rules/CTR52-CPP/GuaranteeGenericCppLibraryFunctionsDoNotOverflow.expected‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
| test.cpp:8:42:8:46 | call to begin | Output iterator for $@ is not guaranteed to be large enough for the input iterator. | test.cpp:8:3:8:11 | call to copy | call to copy |
2+
| test.cpp:13:42:13:46 | call to begin | Output iterator for $@ is not guaranteed to be large enough for the input iterator. | test.cpp:13:3:13:11 | call to copy | call to copy |
23
| test.cpp:17:42:17:46 | call to begin | Output iterator for $@ is not guaranteed to be large enough for the input iterator. | test.cpp:17:3:17:11 | call to copy | call to copy |
4+
| test.cpp:49:42:49:46 | call to begin | Output iterator for $@ is not guaranteed to be large enough for the input iterator. | test.cpp:49:3:49:11 | call to copy | call to copy |
35
| test.cpp:55:42:55:46 | call to begin | Output iterator for $@ is not guaranteed to be large enough for the input iterator. | test.cpp:55:3:55:11 | call to copy | call to copy |
46
| test.cpp:59:36:59:40 | call to begin | Output iterator for $@ is not guaranteed to be large enough for the input iterator. | test.cpp:59:3:59:13 | call to copy_n | call to copy_n |
57
| test.cpp:60:45:60:49 | call to begin | Output iterator for $@ is not guaranteed to be large enough for the input iterator. | test.cpp:60:3:60:14 | call to copy_if | call to copy_if |

‎cpp/cert/test/rules/CTR52-CPP/test.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void test_basic(std::vector<int> from) {
1010

1111
void test_basic_good(std::vector<int> &src) {
1212
std::vector<int> dest(src.size());
13-
std::copy(src.begin(), src.end(), dest.begin()); // COMPLIANT
13+
std::copy(src.begin(), src.end(), dest.begin()); // COMPLIANT [FALSE POSITIVE]
1414
}
1515

1616
void test_non_local_bad(std::vector<int> &src, std::vector<int> &dest) {
@@ -46,7 +46,7 @@ void test_back_inserter(std::vector<int> &src) {
4646
void test_fixed_size_correct() {
4747
std::vector<int> dest(10);
4848
std::vector<int> src(10);
49-
std::copy(src.begin(), src.end(), dest.begin()); // COMPLIANT
49+
std::copy(src.begin(), src.end(), dest.begin()); // COMPLIANT [FALSE POSITIVE]
5050
}
5151

5252
void test_fixed_size_broken() {
Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
| test.cpp:6:3:6:16 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:5:21:5:27 | call to basic_fstream | call to basic_fstream |
2-
| test.cpp:63:3:63:16 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:58:10:58:13 | call to open | call to open |
3-
| test.cpp:77:3:77:16 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:70:9:70:9 | call to operator<< | call to operator<< |
4-
| test.cpp:91:5:91:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:89:8:89:8 | call to operator>> | call to operator>> |
5-
| test.cpp:94:5:94:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:92:8:92:13 | call to gcount | call to gcount |
6-
| test.cpp:97:5:97:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:95:8:95:10 | call to get | call to get |
7-
| test.cpp:100:5:100:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:98:8:98:14 | call to getline | call to getline |
8-
| test.cpp:103:5:103:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:101:8:101:13 | call to ignore | call to ignore |
9-
| test.cpp:106:5:106:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:104:8:104:11 | call to peek | call to peek |
10-
| test.cpp:109:5:109:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:107:8:107:11 | call to read | call to read |
11-
| test.cpp:112:5:112:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:110:8:110:15 | call to readsome | call to readsome |
12-
| test.cpp:115:5:115:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:113:8:113:14 | call to putback | call to putback |
13-
| test.cpp:118:5:118:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:116:8:116:12 | call to unget | call to unget |
14-
| test.cpp:121:5:121:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:119:8:119:12 | call to tellg | call to tellg |
15-
| test.cpp:124:5:124:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:122:8:122:12 | call to seekg | call to seekg |
16-
| test.cpp:127:5:127:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:125:8:125:11 | call to sync | call to sync |
17-
| test.cpp:130:5:130:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:128:8:128:8 | call to operator<< | call to operator<< |
18-
| test.cpp:133:5:133:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:131:8:131:10 | call to put | call to put |
19-
| test.cpp:136:5:136:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:134:8:134:12 | call to write | call to write |
20-
| test.cpp:139:5:139:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:137:8:137:12 | call to tellp | call to tellp |
21-
| test.cpp:142:5:142:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:140:8:140:12 | call to seekp | call to seekp |
22-
| test.cpp:145:5:145:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:143:8:143:12 | call to flush | call to flush |
2+
| test.cpp:17:3:17:16 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:10:21:10:27 | call to basic_fstream | call to basic_fstream |
3+
| test.cpp:30:3:30:16 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:22:23:22:29 | call to basic_fstream | call to basic_fstream |
4+
| test.cpp:44:3:44:16 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:34:16:34:19 | call to basic_fstream | call to basic_fstream |
5+
| test.cpp:63:3:63:16 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:48:16:48:19 | call to basic_fstream | call to basic_fstream |
6+
| test.cpp:77:3:77:16 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:68:22:68:28 | call to basic_fstream | call to basic_fstream |
7+
| test.cpp:77:3:77:16 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:69:22:69:29 | call to basic_fstream | call to basic_fstream |
8+
| test.cpp:88:5:88:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
9+
| test.cpp:91:5:91:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
10+
| test.cpp:94:5:94:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
11+
| test.cpp:97:5:97:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
12+
| test.cpp:100:5:100:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
13+
| test.cpp:103:5:103:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
14+
| test.cpp:106:5:106:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
15+
| test.cpp:109:5:109:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
16+
| test.cpp:112:5:112:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
17+
| test.cpp:115:5:115:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
18+
| test.cpp:118:5:118:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
19+
| test.cpp:121:5:121:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
20+
| test.cpp:124:5:124:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
21+
| test.cpp:127:5:127:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
22+
| test.cpp:130:5:130:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
23+
| test.cpp:133:5:133:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
24+
| test.cpp:136:5:136:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
25+
| test.cpp:139:5:139:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
26+
| test.cpp:142:5:142:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |
27+
| test.cpp:145:5:145:18 | call to terminate | The execution terminates without closing the `fstream` last accessed in $@. | test.cpp:82:21:82:27 | call to basic_fstream | call to basic_fstream |

‎cpp/cert/test/rules/FIO51-CPP/test.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void test_closed() {
1414
file.close();
1515
if (file.fail()) {
1616
}
17-
std::terminate(); // COMPLIANT
17+
std::terminate(); // COMPLIANT [FALSE POSITIVE]
1818
}
1919

2020
void test_fail() {
@@ -27,7 +27,7 @@ void test_fail() {
2727
if (file.fail()) {
2828
}
2929
}
30-
std::terminate(); // COMPLIANT
30+
std::terminate(); // COMPLIANT [FALSE POSITIVE]
3131
}
3232

3333
void test_scope() {
@@ -41,7 +41,7 @@ void test_scope() {
4141
if (file.fail()) {
4242
}
4343
}
44-
std::terminate(); // COMPLIANT
44+
std::terminate(); // COMPLIANT [FALSE POSITIVE]
4545
}
4646

4747
void test_sequence() {
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
1-
| test.cpp:10:11:10:11 | call to operator>> | Missing call to positioning function before $@. | test.cpp:9:11:9:11 | call to operator<< | call to operator>> |
2-
| test.cpp:11:11:11:11 | call to operator<< | Missing call to positioning function before $@. | test.cpp:10:11:10:11 | call to operator>> | call to operator<< |
3-
| test.cpp:19:11:19:11 | call to operator>> | Missing call to positioning function before $@. | test.cpp:18:11:18:11 | call to operator<< | call to operator>> |
4-
| test.cpp:31:8:31:8 | call to operator<< | Missing call to positioning function before $@. | test.cpp:29:8:29:8 | call to operator>> | call to operator<< |
5-
| test.cpp:41:12:41:12 | call to operator>> | Missing call to positioning function before $@. | test.cpp:40:6:40:6 | call to operator<< | call to operator>> |
6-
| test.cpp:42:6:42:6 | call to operator<< | Missing call to positioning function before $@. | test.cpp:41:12:41:12 | call to operator>> | call to operator<< |
71
| test.cpp:52:14:52:14 | call to operator<< | Missing call to positioning function before $@. | test.cpp:51:14:51:14 | call to operator>> | call to operator<< |
82
| test.cpp:63:12:63:12 | call to operator<< | Missing call to positioning function before $@. | test.cpp:62:12:62:12 | call to operator>> | call to operator<< |
9-
| test.cpp:103:12:103:12 | call to operator<< | Missing call to positioning function before $@. | test.cpp:99:12:99:12 | call to operator>> | call to operator<< |

‎cpp/common/test/rules/iofstreammissingpositioning/test.cpp‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ std::string str("output:");
77
void test_local() {
88
std::fstream f_local("file");
99
f_local << "some data"; // COMPLIANT
10-
f_local >> str; // NON_COMPLIANT
11-
f_local << "more data"; // NON_COMPLIANT
10+
f_local >> str; // NON_COMPLIANT [MISSING]
11+
f_local << "more data"; // NON_COMPLIANT [MISSING]
1212
f_local.seekp(0);
1313
f_local >> str; // COMPLIANT
1414
};
1515
void test_local2() {
1616
std::fstream f_local("file");
1717
f_local << "some data"; // COMPLIANT
1818
f_local << "more data"; // COMPLIANT
19-
f_local >> str; // NON_COMPLIANT
19+
f_local >> str; // NON_COMPLIANT [MISSING]
2020
f_local >> str; // COMPLIANT
2121
};
2222

@@ -28,7 +28,7 @@ void test_2streams() {
2828
f_s1 << "some data";
2929
f_s2 >> str; // COMPLIANT
3030
f_s1.seekp(0);
31-
f_s2 << "some data"; // NON_COMPLIANT
31+
f_s2 << "some data"; // NON_COMPLIANT [MISSING]
3232
f_s1 >> str; // COMPLIANT
3333
}
3434

@@ -38,8 +38,8 @@ void test_alias() {
3838
std::fstream &alias_f1 = f1;
3939

4040
f1 << "some data";
41-
alias_f1 >> str; // NON_COMPLIANT
42-
f1 << "more data"; // NON_COMPLIANT
41+
alias_f1 >> str; // NON_COMPLIANT [MISSING]
42+
f1 << "more data"; // NON_COMPLIANT [MISSING]
4343
}
4444

4545
// class member variable
@@ -100,5 +100,5 @@ void test_branch(int rand) {
100100
if (rand > 10) {
101101
f_branch.seekp(0);
102102
}
103-
f_branch << "more data"; // NON_COMPLIANT
103+
f_branch << "more data"; // NON_COMPLIANT [MISSING]
104104
}

‎cpp/common/test/rules/ownedpointervaluestoredinunrelatedsmartpointer/OwnedPointerValueStoredInUnrelatedSmartPointer.expected‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
problems
22
| test.cpp:5:27:5:28 | v1 | test.cpp:4:13:4:14 | v1 | test.cpp:5:27:5:28 | v1 | Raw pointer flows to initialize multiple unrelated smart pointers. |
33
| test.cpp:5:27:5:28 | v1 | test.cpp:16:13:16:22 | new | test.cpp:5:27:5:28 | v1 | Raw pointer flows to initialize multiple unrelated smart pointers. |
4-
| test.cpp:6:31:6:33 | call to get | test.cpp:4:13:4:14 | v1 | test.cpp:6:31:6:33 | call to get | Raw pointer flows to initialize multiple unrelated smart pointers. |
5-
| test.cpp:6:31:6:33 | call to get | test.cpp:16:13:16:22 | new | test.cpp:6:31:6:33 | call to get | Raw pointer flows to initialize multiple unrelated smart pointers. |
64
| test.cpp:7:28:7:29 | v2 | test.cpp:4:13:4:14 | v1 | test.cpp:7:28:7:29 | v2 | Raw pointer flows to initialize multiple unrelated smart pointers. |
75
| test.cpp:7:28:7:29 | v2 | test.cpp:16:13:16:22 | new | test.cpp:7:28:7:29 | v2 | Raw pointer flows to initialize multiple unrelated smart pointers. |
86
| test.cpp:11:28:11:29 | v2 | test.cpp:10:8:10:17 | new | test.cpp:11:28:11:29 | v2 | Raw pointer flows to initialize multiple unrelated smart pointers. |
@@ -11,18 +9,10 @@ problems
119
edges
1210
| test.cpp:3:14:3:15 | v1 | test.cpp:4:13:4:14 | v1 | provenance | |
1311
| test.cpp:3:14:3:15 | v1 | test.cpp:5:27:5:28 | v1 | provenance | |
14-
| test.cpp:3:14:3:15 | v1 | test.cpp:5:27:5:28 | v1 | provenance | |
1512
| test.cpp:4:13:4:14 | v1 | test.cpp:4:13:4:14 | v1 | provenance | |
1613
| test.cpp:4:13:4:14 | v1 | test.cpp:5:27:5:28 | v1 | provenance | |
17-
| test.cpp:4:13:4:14 | v1 | test.cpp:5:27:5:28 | v1 | provenance | |
1814
| test.cpp:4:13:4:14 | v1 | test.cpp:7:28:7:29 | v2 | provenance | |
1915
| test.cpp:4:13:4:14 | v1 | test.cpp:7:28:7:29 | v2 | provenance | |
20-
| test.cpp:5:24:5:25 | call to shared_ptr | test.cpp:6:28:6:29 | p1 | provenance | |
21-
| test.cpp:5:24:5:25 | call to shared_ptr | test.cpp:6:28:6:29 | p1 | provenance | |
22-
| test.cpp:5:27:5:28 | v1 | test.cpp:5:24:5:25 | call to shared_ptr | provenance | Config |
23-
| test.cpp:5:27:5:28 | v1 | test.cpp:5:24:5:25 | call to shared_ptr | provenance | Config |
24-
| test.cpp:6:28:6:29 | p1 | test.cpp:6:31:6:33 | call to get | provenance | Config |
25-
| test.cpp:6:28:6:29 | p1 | test.cpp:6:31:6:33 | call to get | provenance | Config |
2616
| test.cpp:8:3:8:14 | ... = ... | test.cpp:9:28:9:29 | v2 | provenance | |
2717
| test.cpp:8:8:8:14 | 0 | test.cpp:8:3:8:14 | ... = ... | provenance | |
2818
| test.cpp:10:3:10:17 | ... = ... | test.cpp:11:28:11:29 | v2 | provenance | |
@@ -39,14 +29,7 @@ nodes
3929
| test.cpp:4:13:4:14 | v1 | semmle.label | v1 |
4030
| test.cpp:4:13:4:14 | v1 | semmle.label | v1 |
4131
| test.cpp:4:13:4:14 | v1 | semmle.label | v1 |
42-
| test.cpp:5:24:5:25 | call to shared_ptr | semmle.label | call to shared_ptr |
43-
| test.cpp:5:24:5:25 | call to shared_ptr | semmle.label | call to shared_ptr |
44-
| test.cpp:5:27:5:28 | v1 | semmle.label | v1 |
45-
| test.cpp:5:27:5:28 | v1 | semmle.label | v1 |
4632
| test.cpp:5:27:5:28 | v1 | semmle.label | v1 |
47-
| test.cpp:6:28:6:29 | p1 | semmle.label | p1 |
48-
| test.cpp:6:28:6:29 | p1 | semmle.label | p1 |
49-
| test.cpp:6:31:6:33 | call to get | semmle.label | call to get |
5033
| test.cpp:7:28:7:29 | v2 | semmle.label | v2 |
5134
| test.cpp:8:3:8:14 | ... = ... | semmle.label | ... = ... |
5235
| test.cpp:8:8:8:14 | 0 | semmle.label | 0 |

‎cpp/common/test/rules/ownedpointervaluestoredinunrelatedsmartpointer/test.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
void f2(int *v1) {
44
int *v2 = v1;
55
std::shared_ptr<int> p1(v1); // NON_COMPLIANT
6-
new std::shared_ptr<int>(p1.get()); // NON_COMPLIANT
6+
new std::shared_ptr<int>(p1.get()); // NON_COMPLIANT [MISSING]
77
new std::shared_ptr<int>(v2); // NON_COMPLIANT
88
v2 = nullptr;
99
new std::shared_ptr<int>(v2); // COMPLIANT

0 commit comments

Comments
 (0)