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