From 973ccda733f368433ce71bc794bf92ec84710433 Mon Sep 17 00:00:00 2001 From: versat Date: Mon, 4 Mar 2019 16:11:42 +0100 Subject: [PATCH] manual.md: Copy and adapt chapter "Using your own custom .cfg file". --- man/manual.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/man/manual.md b/man/manual.md index 887661c83..ee104577f 100644 --- a/man/manual.md +++ b/man/manual.md @@ -535,4 +535,14 @@ When external libraries are used, such as WinAPI, POSIX, gtk, Qt, etc, Cppcheck Cppcheck already contains configurations for several libraries. They can be loaded as described below. Note that the configuration for the standard libraries of C and C++, std.cfg, is always loaded by cppcheck. If you create or update a configuration file for a popular library, we would appreciate if you upload it to us. +### Using your own custom .cfg file +You can create and use your own .cfg files for your projects. Use `--check-library` and `--enable=information` to get hints about what you should configure. + +It is recommended that you use the `Library Editor` in the `Cppcheck GUI` to edit configuration files. It is available in the `View` menu. Not all settings are documented in this manual yet. + +If you have a question about the .cfg file format it is recommended that you ask in the forum (). + +The command line cppcheck will try to load custom .cfg files from the working path - execute cppcheck from the path where the .cfg files are. + +The cppcheck GUI will try to load custom .cfg files from the project file path. The custom .cfg files should be shown in the `Edit Project File` dialog that you open from the `File` menu.