Specifying the C/C++ analysis engine mode
The Klocwork analysis engine for C/C++ can be run using the following modes:
- Standard: If you do not specify an option, the standard mode is run by default. It is the recommended mode for all users. This mode provides full support of the language specification up to C++17, and partial support for C++20.
- Classic: The option
--classic
forces Klocwork to use the previous generation (pre-Klocwork 2018) analysis engine. The previous analysis engine only provides partial support for C++11 and C++14. - Modern: The option
--modern
forces Klocwork to use the modern analysis engine, with advanced capabilities for analyzing modern C++ code. This engine provides full support of the language specification up to C++17, and partial support for C++20 and C++23. Note that this engine can significantly increase the number of new defects found.