We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3413966 commit b3ff452Copy full SHA for b3ff452
cpp/autosar/test/rules/A15-4-4/test.cpp
@@ -45,10 +45,12 @@ void test_swap_wrapper() noexcept {
45
swap_wrapper(&a, &b);
46
}
47
48
-#include <string>
49
#include <stdexcept>
+#include <string>
50
51
-std::string test_fp_reported_in_424(const std::string &s1, const std::string &s2) {
+std::string test_fp_reported_in_424(
52
+ const std::string &s1,
53
+ const std::string &s2) { // COMPLIANT - `reserve` and `append` may throw.
54
std::string s3;
55
s3.reserve(s1.size() + s2.size());
56
s3.append(s1.c_str(), s1.size());
0 commit comments