updated --doc output about new checks in 1.40

This commit is contained in:
Daniel Marjamäki 2010-01-27 19:25:48 +01:00
parent 1c84dc814c
commit 7ec27cb43b
2 changed files with 3 additions and 2 deletions

View File

@ -195,8 +195,9 @@ private:
"* Are all variables initialized by the constructors?\n"
"* [[CheckMemset|Warn if memset, memcpy etc are used on a class]]\n"
"* If it's a base class, check that the destructor is virtual\n"
"* The operator= should return a constant reference to itself\n"
"* Are there unused private functions\n"
"* 'operator=' should return reference to self\n"
"* 'operator=' should check for assignment to self\n"
"* Constness for member functions\n";
}
};

View File

@ -155,7 +155,7 @@ private:
"* dereferencing an erased iterator\n"
"* for vectors: using iterator/pointer after push_back has been used\n"
"* dangerous usage of find\n"
"* optimisation: using empty() instead of size()";
"* optimisation: use empty() instead of size() to guarantee fast code\n";
}
bool isStlContainer(const Token *tok);