Skip to content

Commit

Permalink
updated --doc output about new checks in 1.40
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Marjamäki committed Jan 27, 2010
1 parent 1c84dc8 commit 7ec27cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/checkclass.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ class CheckClass : public Check
"* 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";
}
};
Expand Down
2 changes: 1 addition & 1 deletion lib/checkstl.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class CheckStl : public Check
"* 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);
Expand Down

0 comments on commit 7ec27cb

Please sign in to comment.