diff --git a/man/manual.md b/man/manual.md index e009d7dd8..cc64df9b8 100644 --- a/man/manual.md +++ b/man/manual.md @@ -4,9 +4,7 @@ ## Introduction -Cppcheck is an analysis tool for C/C++ code. Unlike C/C++ compilers and many other analysis tools, it doesn't detect -syntax errors. Instead, Cppcheck detects the types of bugs that the compilers normally fail to detect. The goal is no -false positives. +Cppcheck is an analysis tool for C/C++ code. It provides unique code analysis to detect bugs and focuses on detecting undefined behaviour and dangerous coding constructs. The goal is to detect only real errors in the code (i.e. have very few false positives). Supported code and platforms: @@ -76,7 +74,7 @@ If "path" is a folder then cppcheck will recursively check all source files in t With Cppcheck you can check files manually, by specifying files/paths to check and settings. Or you can use a project file (cmake/visual studio/etc). -We don't know which approach will give you the best results. It is recommended that you try both. It is possible that you will get different results so that to find most bugs you need to use both approaches. +We don't know which approach (project file or manual configuration) will give you the best results. It is recommended that you try both. It is possible that you will get different results so that to find most bugs you need to use both approaches. Later chapters will describe this in more detail. @@ -125,35 +123,6 @@ portability warnings. 64-bit portability. code might work different on different Configuration problems. The recommendation is to only enable these during configuration. -### Platform - -You should use a platform configuration that match your target. - -By default Cppcheck uses native platform configuration that works well if your code is compiled and executed locally. - -Cppcheck has builtin configurations for unix and windows targets. You can easily use these with the --platform command line flag. - -You can also create your own custom platform configuration in a xml file. Here is an example: - - - - 8 - signed - - 2 - 4 - 4 - 8 - 4 - 8 - 12 - 4 - 4 - 2 - - - - ## Importing project You can import some project files and build configurations into Cppcheck. @@ -200,6 +169,34 @@ In Linux you can use for instance the `bear` (build ear) utility to generate a c bear make +## Platform + +You should use a platform configuration that match your target. + +By default Cppcheck uses native platform configuration that works well if your code is compiled and executed locally. + +Cppcheck has builtin configurations for unix and windows targets. You can easily use these with the --platform command line flag. + +You can also create your own custom platform configuration in a xml file. Here is an example: + + + + 8 + signed + + 2 + 4 + 4 + 8 + 4 + 8 + 12 + 4 + 4 + 2 + + + ## Preprocessor Settings