From c4762e0c508434b6219fb2f422a70607f626445a Mon Sep 17 00:00:00 2001 From: Tim Gerundt Date: Mon, 27 Jun 2011 23:36:23 +0200 Subject: [PATCH] Add "Writing Cppcheck rules" and "Cppcheck Design" articles as appendix to the manual --- man/cppcheck-design.docbook | 10 ++-------- man/manual.docbook | 16 +++++++++++++++- man/writing-rules-1.docbook | 14 +++++--------- man/writing-rules-2.docbook | 14 +++++--------- man/writing-rules-3.docbook | 14 +++----------- 5 files changed, 30 insertions(+), 38 deletions(-) diff --git a/man/cppcheck-design.docbook b/man/cppcheck-design.docbook index 62f3d1237..f34dc0e12 100644 --- a/man/cppcheck-design.docbook +++ b/man/cppcheck-design.docbook @@ -1,11 +1,5 @@ -
+ Cppcheck Design @@ -191,4 +185,4 @@ void f2() Cppcheck will just find some bugs. It is likely that you won't find these bugs unless you use Cppcheck. -
+ diff --git a/man/manual.docbook b/man/manual.docbook index e570e52d6..f0f3ef59c 100644 --- a/man/manual.docbook +++ b/man/manual.docbook @@ -1,6 +1,11 @@ +"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ + + + + +]> Cppcheck 1.49 @@ -612,4 +617,13 @@ htmlreport/cppcheck-htmlreport --file=err.xml --report-dir=test1 --source-dir=.< if you want to limit the checking. + + + Writing Cppcheck rules + &writing-rules-1; + &writing-rules-2; + &writing-rules-3; + + + &cppcheck-design; diff --git a/man/writing-rules-1.docbook b/man/writing-rules-1.docbook index e94758da6..620acf1e5 100644 --- a/man/writing-rules-1.docbook +++ b/man/writing-rules-1.docbook @@ -1,11 +1,7 @@ - -
- - Writing Cppcheck rules - - Part 1 - Getting started +
+ + Part 1 - Getting started Daniel @@ -18,7 +14,7 @@ 2010 - +
Introduction @@ -146,4 +142,4 @@ Checking dealloc.cpp... [dealloc.cpp:2]: (style) Redundant condition. It is valid to free a NULL pointer.
-
+ diff --git a/man/writing-rules-2.docbook b/man/writing-rules-2.docbook index dffe6d605..4b4295c4e 100644 --- a/man/writing-rules-2.docbook +++ b/man/writing-rules-2.docbook @@ -1,11 +1,7 @@ - -
- - Writing Cppcheck rules - - Part 2 - The Cppcheck data representation +
+ + Part 2 - The Cppcheck data representation Daniel @@ -18,7 +14,7 @@ 2010 - +
Introduction @@ -350,4 +346,4 @@ s8 x;
-
+ diff --git a/man/writing-rules-3.docbook b/man/writing-rules-3.docbook index 73d35e44c..102937ffe 100644 --- a/man/writing-rules-3.docbook +++ b/man/writing-rules-3.docbook @@ -1,15 +1,7 @@ -
+
- Writing Cppcheck rules - - Part 3 - Introduction to writing rules with C++ + Part 3 - Introduction to writing rules with C++ DanielMarjamäki @@ -246,4 +238,4 @@ void CheckOther::dangerousUsageStrtolError(const Token *tok) The pattern (|, can also be written as [(,].
-
+