From 2e03e60218d8d1136e8c033ddee87fc801d8a848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 10 Jul 2010 08:12:23 +0200 Subject: [PATCH] Manual: Better description of -D. As suggested by kwin. Ticket #1212 --- man/manual.docbook | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/man/manual.docbook b/man/manual.docbook index 2c0d8db9c..e1837b5a8 100644 --- a/man/manual.docbook +++ b/man/manual.docbook @@ -3,9 +3,9 @@ "/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd"> - Cppcheck 1.43 + Cppcheck 1.44 - 2010-05-08 + 2010-07-10 @@ -165,9 +165,14 @@ Checking path/file2.cpp... But if you want to manually limit the checking you can do so with -D. - For example, if you want to limit the checking so the only - configuration to check should be "DEBUG=1;__cplusplus" then something like - this can be used: + Beware that only the macros, which are given here and the macros + defined in source files and known header files are considered. That + excludes all the macros defined in some system header files, which are by + default not examined by cppcheck. + + The usage: if you, for example, want to limit the checking so the + only configuration to check should be "DEBUG=1;__cplusplus" then something + like this can be used: cppcheck -DDEBUG=1 -D__cplusplus path @@ -220,7 +225,7 @@ Checking path/file2.cpp... severity - one of: error / possible error / style / possible style + either error or style