JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.2p0 | CONFIDENTIAL | CodeSecure Inc |
Some CodeSonar warnings are derived from parser warnings
produced during the build
interval of the C/C++ build/analysis.
We refer to the corresponding warning classes as C/C++ parser
warning classes.
Some CodeSonar warnings are derived from parser warnings produced
during the build
interval of the C/C++ build/analysis.
We refer to the corresponding warning classes as C/C++ parser
warning classesnote. The
majority of C/C++ parser warning classes have mnemonics of the form
PARSE.*.
Note: with factory configuration settings, C/C++ parser warnings
are dropped if they correspond to parser errors rather than
parser warnings.
See Enabling and Presets, below, for
more information.
Note: the factory configuration settings include the following WARNING_FILTER rule.
WARNING_FILTER += discard effective_parse_error=true
This means that even when a C/C++ parser warning class is enabled by default, warnings of that class will be dropped if they correspond to parser errors rather than parser warnings. This prevents errors from the parse log from being duplicated as CodeSonar warnings.
If you prefer not to discard these warnings, you have several options.
WARNING_FILTER += allow class="Bad Character Value"
For presets that selectively enable warning classes based on class properties, C/C++ parser warning classes are treated the same as other C/C++ warning classes. For example, the Deprecated Entity class is enabled by the autosarc++14 preset because it is closely mapped to two AUTOSAR rules (AUTOSARC++14:A1-1-1, AUTOSARC++14:A18-1-3).
There are also three presets specific to C/C++ parser warning classes:
You can apply the cxx_parser_warnings preset to the CodeSonar build/analysis as shown in the following table.
| Command Line |
Specify -preset cxx_parser_warnings as part of your
build/analysis command. For example:
codesonar analyze MyProj -preset cxx_parser_warnings localhost:7340 make
|
|---|---|
| Define as a default preset | Copy cxx_parser_warnings.conf from $CSONAR/codesonar/presets/ to $CSONAR/codesonar/default_presets/. OR Use the CodeSonar Configuration Tool Modify Analysis Settings option. |
| Windows Build Wizard | Select cxx_parser_warnings from the Preset list on screen 2. |
| Eclipse Plug-In | Select cxx_parser_warnings from the Presets list in the Properties dialog. |
| Visual Studio Plug-In | Select cxx_parser_warnings from the Presets list in the Project Properties dialog. |
Use the same techniques to apply the cxx_parser_diagnostics or no_cxx_parser_diagnostics preset.
Note. In a very small number of cases, some warnings of classes characterized as "C/C++ parser warning classes" may be issued by the main CodeSonar analysis, rather than by the parser.
To report problems with this documentation, please visit https://support.codesecure.com/.