From 4a25327b57a1a98d057a4b5d99326a43a9460a53 Mon Sep 17 00:00:00 2001 From: Tim Gerundt Date: Thu, 30 Jun 2011 20:58:43 +0200 Subject: [PATCH] Manual: Use tag for files and directories --- man/manual.docbook | 7 ++++--- man/writing-rules-1.docbook | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/man/manual.docbook b/man/manual.docbook index f0f3ef59c..ac5b93e75 100644 --- a/man/manual.docbook +++ b/man/manual.docbook @@ -106,11 +106,12 @@ Checking path/file2.cpp... cppcheck src/a src/b - All files under "src/a" and "src/b" are then checked. + All files under src/a and + src/b are then checked. The second option is to use -i, with it you - specify files/paths to ignore. With this command no files in "src/c" are - checked: + specify files/paths to ignore. With this command no files in + src/c are checked: cppcheck -isrc/c src diff --git a/man/writing-rules-1.docbook b/man/writing-rules-1.docbook index 620acf1e5..45dabd74a 100644 --- a/man/writing-rules-1.docbook +++ b/man/writing-rules-1.docbook @@ -85,7 +85,7 @@ free(p); } - Save that code as dealloc.cpp and then use + Save that code as dealloc.cpp and then use cppcheck --rule=".+" dealloc.cpp: $ ./cppcheck --rule=".+" dealloc.cpp @@ -134,7 +134,7 @@ Checking dealloc.cpp... </message> </rule> - If you save that xml data in dealloc.rule you + If you save that xml data in dealloc.rule you can test this rule: $ cppcheck --rule-file=dealloc.rule dealloc.cpp