updated --doc output about new checks in 1.40
This commit is contained in:
parent
1c84dc814c
commit
7ec27cb43b
|
@ -195,8 +195,9 @@ private:
|
||||||
"* Are all variables initialized by the constructors?\n"
|
"* Are all variables initialized by the constructors?\n"
|
||||||
"* [[CheckMemset|Warn if memset, memcpy etc are used on a class]]\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"
|
"* 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"
|
"* 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";
|
"* Constness for member functions\n";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -155,7 +155,7 @@ private:
|
||||||
"* dereferencing an erased iterator\n"
|
"* dereferencing an erased iterator\n"
|
||||||
"* for vectors: using iterator/pointer after push_back has been used\n"
|
"* for vectors: using iterator/pointer after push_back has been used\n"
|
||||||
"* dangerous usage of find\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);
|
bool isStlContainer(const Token *tok);
|
||||||
|
|
Loading…
Reference in New Issue