Skip to content

Commit b3ff452

Browse files
committed
Add test case annotation
1 parent 3413966 commit b3ff452

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cpp/autosar/test/rules/A15-4-4/test.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,12 @@ void test_swap_wrapper() noexcept {
4545
swap_wrapper(&a, &b);
4646
}
4747

48-
#include <string>
4948
#include <stdexcept>
49+
#include <string>
5050

51-
std::string test_fp_reported_in_424(const std::string &s1, const std::string &s2) {
51+
std::string test_fp_reported_in_424(
52+
const std::string &s1,
53+
const std::string &s2) { // COMPLIANT - `reserve` and `append` may throw.
5254
std::string s3;
5355
s3.reserve(s1.size() + s2.size());
5456
s3.append(s1.c_str(), s1.size());

0 commit comments

Comments
 (0)