From 7ec27cb43bce3228d1ad351ff4ec0acdef8a6271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 27 Jan 2010 19:25:48 +0100 Subject: [PATCH] updated --doc output about new checks in 1.40 --- lib/checkclass.h | 3 ++- lib/checkstl.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/checkclass.h b/lib/checkclass.h index f507c75c8..9fa78b75a 100644 --- a/lib/checkclass.h +++ b/lib/checkclass.h @@ -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"; } }; diff --git a/lib/checkstl.h b/lib/checkstl.h index 44f60a47c..1c7e08689 100644 --- a/lib/checkstl.h +++ b/lib/checkstl.h @@ -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);