Klocwork Quality Standard community C and C++ checker reference
List of community C and C++ checkers that focus on improving overall code quality.
| Checker name | Description | Default severity | Enabled by default? | Version |
|---|---|---|---|---|
| CXX.ARRAY_INDEX.WITHOUT_CHECK | Array index access without check | 4 | False | 2025.3 |
| CXX.BSTR.LITERAL | Do not pass string literal or casted CString to COM function expecting BSTR parameter | 2 | False | 2020.2 |
| CXX.CWARN.DTOR.NONVIRT | Destructors should be declared as virtual | 3 | False | 2020.2 |
| CXX.CWARN.HARDCODED_LOOP_BOUND | Hard-coded loop used for array index | 4 | False | 2020.2 |
| CXX.CWARN.ITER.EXTERN | Externally declared loop iterator variables are forbidden | 4 | False | 2020.1 |
| CXX.CWINAPP.INIT | Incorrect or missing InitInstance override for class derived from CWinApp | 2 | False | 2020.2 |
| CXX.FUNC.CSTRING.FORMAT | CString cannot call CString.Format() on itself | 4 | False | 2020.2 |
| CXX.FUNC.MEMSET.BUILTIN | Calls to memset must not pass a reference to a structure containing non-builtin types | 2 | False | 2020.2 |
| CXX.FUNC.T2OLE.LOOP | Do not call T2OLE or OLE2CT within a loop | 2 | False | 2020.1 |
| CXX.FUNC.T2OLE.RETURN | Do not call T2OLE or OLE2CT within a return statement | 2 | False | 2020.1 |
| CXX.SIZEOF.CSTRING | Use of sizeof on char* may be misleading | 4 | False | 2023.2 |
| CXX.USE.MAGIC_NUMBER | Use of magic number | 4 | False | 2025.2 |