From 25bf50755e37f1abc8cc2e66c2792e2c99a63601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 17 Jan 2010 14:56:56 +0100 Subject: [PATCH] Reformatting the --doc output to work better in the wiki --- lib/checkautovariables.h | 4 ++-- lib/checkclass.h | 12 ++++++------ lib/checkdangerousfunctions.h | 6 +++--- lib/checkexceptionsafety.h | 8 ++++---- lib/checkother.h | 32 ++++++++++++++++---------------- lib/checkstl.h | 14 +++++++------- 6 files changed, 38 insertions(+), 38 deletions(-) diff --git a/lib/checkautovariables.h b/lib/checkautovariables.h index 9a4f341d5..af6c02d9a 100644 --- a/lib/checkautovariables.h +++ b/lib/checkautovariables.h @@ -87,8 +87,8 @@ private: { return "A pointer to a variable is only valid as long as the variable is in scope.\n" "Check:\n" - " * returning a pointer to variable\n" - " * assigning address of an variable to an effective parameter of a function\n"; + "* returning a pointer to variable\n" + "* assigning address of an variable to an effective parameter of a function\n"; } }; /// @} diff --git a/lib/checkclass.h b/lib/checkclass.h index 49e9e2aaa..a5c56144b 100644 --- a/lib/checkclass.h +++ b/lib/checkclass.h @@ -153,12 +153,12 @@ private: std::string classInfo() const { return "Check the code for each class.\n" - " * Missing constructors\n" - " * 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"; + "* Missing constructors\n" + "* 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"; } }; /// @} diff --git a/lib/checkdangerousfunctions.h b/lib/checkdangerousfunctions.h index dfd524596..98dacae68 100644 --- a/lib/checkdangerousfunctions.h +++ b/lib/checkdangerousfunctions.h @@ -72,9 +72,9 @@ private: std::string classInfo() const { return "Warn if any of these deprecated functions are used:\n" - " * mktemp\n" - " * gets\n" - " * scanf\n"; + "* mktemp\n" + "* gets\n" + "* scanf\n"; } }; /// @} diff --git a/lib/checkexceptionsafety.h b/lib/checkexceptionsafety.h index cd1f7c092..7420965c1 100644 --- a/lib/checkexceptionsafety.h +++ b/lib/checkexceptionsafety.h @@ -104,10 +104,10 @@ private: std::string classInfo() const { return "Checking exception safety\n" - " * Throwing exceptions in destructors\n" - " * Unsafe use of 'new'\n" - " * Unsafe reallocation\n" - " * Throwing exception during invalid state"; + "* Throwing exceptions in destructors\n" + "* Unsafe use of 'new'\n" + "* Unsafe reallocation\n" + "* Throwing exception during invalid state"; } }; /// @} diff --git a/lib/checkother.h b/lib/checkother.h index 8165c1970..5ef652539 100644 --- a/lib/checkother.h +++ b/lib/checkother.h @@ -199,26 +199,26 @@ public: return "Other checks\n" // error - " * [[OverlappingData|bad usage of the function 'sprintf' (overlapping data)]]\n" - " * division with zero\n" - " * null pointer dereferencing\n" - " * using uninitialized variables and data\n" + "* [[OverlappingData|bad usage of the function 'sprintf' (overlapping data)]]\n" + "* division with zero\n" + "* null pointer dereferencing\n" + "* using uninitialized variables and data\n" // style - " * C-style pointer cast in cpp file\n" - " * redundant if\n" - " * bad usage of the function 'strtol'\n" - " * [[CheckUnsignedDivision|unsigned division]]\n" - " * unused struct member\n" - " * passing parameter by value\n" - " * [[IncompleteStatement|Incomplete statement]]\n" - " * [[charvar|check how signed char variables are used]]\n" - " * variable scope can be limited\n" - " * condition that is always true/false\n" - " * unusal pointer arithmetic. For example: \"abc\" + 'd'\n" + "* C-style pointer cast in cpp file\n" + "* redundant if\n" + "* bad usage of the function 'strtol'\n" + "* [[CheckUnsignedDivision|unsigned division]]\n" + "* unused struct member\n" + "* passing parameter by value\n" + "* [[IncompleteStatement|Incomplete statement]]\n" + "* [[charvar|check how signed char variables are used]]\n" + "* variable scope can be limited\n" + "* condition that is always true/false\n" + "* unusal pointer arithmetic. For example: \"abc\" + 'd'\n" // optimisations - " * optimisation: detect post increment/decrement\n"; + "* optimisation: detect post increment/decrement\n"; } private: diff --git a/lib/checkstl.h b/lib/checkstl.h index 1fa468b43..facc7216a 100644 --- a/lib/checkstl.h +++ b/lib/checkstl.h @@ -149,13 +149,13 @@ private: std::string classInfo() const { return "Check for invalid usage of STL:\n" - " * out of bounds errors\n" - " * misuse of iterators when iterating through a container\n" - " * mismatching containers in calls\n" - " * 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()"; + "* out of bounds errors\n" + "* misuse of iterators when iterating through a container\n" + "* mismatching containers in calls\n" + "* 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()"; } bool isStlContainer(const Token *tok);