You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ASSERT_EQUALS("[test.cpp:24:16] -> [test.cpp:25:16]: (style) Variable 'm.u32.abcd' is reassigned a value before the old one has been used. [redundantAssignment]\n"
11107
+
"[test.cpp:35:14] -> [test.cpp:37:14]: (style) Variable 'm.u16.ab' is reassigned a value before the old one has been used. [redundantAssignment]\n", errout_str());
11066
11108
}
11067
11109
11068
11110
void redundantVarAssignment_7133() {
@@ -12903,6 +12945,13 @@ class TestOther : public TestFixture {
12903
12945
" cif::condition mWhere;\n"
12904
12946
"};\n");
12905
12947
ASSERT_EQUALS("", errout_str());
12948
+
12949
+
check("void g(std::string);\n" // #14928
12950
+
"void f(std::string s) {\n"
12951
+
" g(std::move(s));\n"
12952
+
" for (char c : s) {}\n"
12953
+
"}\n");
12954
+
ASSERT_EQUALS("[test.cpp:4:19]: (warning) Access of moved variable 's'. [accessMoved]\n", errout_str());
0 commit comments