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 |
A comment appears to contain a lot of code.
Comment text is considered likely to be code if its proportion of operator characters (!#%^&*()+={}\[]:;<>/) is consistent with that typically seen in C and C++ source code. This heuristic can be thrown off by short comments, so warnings will not be issued for comments that contain only a small number of characters.
The various thresholds involved in this determination are controlled by configuration file parameters:
See the linked individual parameter documentation for full details.
| Class Name | Commented-out Code | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Significance | style | ||||||||||||||||||||||||||||||||||||||||||
| Mnemonic | LANG.COMM.CODE | ||||||||||||||||||||||||||||||||||||||||||
| Categories |
|
||||||||||||||||||||||||||||||||||||||||||
| Availability | Available for C and C++. |
||||||||||||||||||||||||||||||||||||||||||
| Enabling | Checks for this warning class are
disabled by default. To enable them, add the following WARNING_FILTER
rule to the project configuration file.
WARNING_FILTER += allow class="Commented-out Code" |
int f (int i){
/* 'Commented-out Code' warning issued for following comment block */
/* int b;
* int a = i;
* a = i++;
* b = g(a);
*/
i++;
/* this comment is ordinary text */ /* does not contain source code */
return i;
}
The following configuration file parameters affect checks for this warning class.
To report problems with this documentation, please visit https://support.codesecure.com/.