added a TODO testcase for ticket 1724

This commit is contained in:
Martin Ettl 2010-06-06 12:46:08 +02:00
parent 472bd9dabe
commit 2b557cee45
1 changed files with 12 additions and 0 deletions

View File

@ -3476,6 +3476,18 @@ private:
"};\n"
);
ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::strGetString1' can be const\n", errout.str());
checkConst("class A{\n"
"public:\n"
"A(){m_strVec.push_back("");}\n"
"size_t strGetSize()\n"
"{return m_strVec.size();}\n"
"private:\n"
"std::vector<std::string> m_strVec;\n"
"};\n"
);
TODO_ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::strGetSize' can be const\n", errout.str());
}
// increment/decrement => not const