From 794c0a8f7815a55d3e582ad5549ccf9874f4fc6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 12 Aug 2010 21:51:20 +0200 Subject: [PATCH] doc: added a little section about excluding a file or folder from checking --- man/manual.docbook | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/man/manual.docbook b/man/manual.docbook index 75fd9cf26..82b28fdb4 100644 --- a/man/manual.docbook +++ b/man/manual.docbook @@ -91,6 +91,24 @@ Checking path/file2.cpp... 2/2 files checked 100% done +
+ Excluding a file or folder from checking + + There is no command to exclude a file or folder from checking. But + you can exclude a file or folder by being more careful when including + files and folders in the checking. + + Imagine for example that the folder "src" contain the folders "a", + "b" and "c". To exclude "c" this command can be used: + + cppcheck src/a src/b + + All files under "src/a" and "src/b" are then checked. + + The flag --file-list might also be + useful. +
+
Stylistic issues @@ -313,7 +331,7 @@ gui/test.cpp,16,error,mismatchAllocDealloc,Mismatching allocation and deallocati If you want to filter out certain errors you can suppress these. First you need to create a suppressions file. The format is: - [error id]:[filename] + [error id]:[filename]:[line] [error id]:[filename2] [error id]