CheckExceptionSafety: moved `CWE` objects into source file (#4759)
This commit is contained in:
parent
7ae7ad60d8
commit
7dde6c5d29
|
@ -35,6 +35,9 @@ namespace {
|
||||||
CheckExceptionSafety instance;
|
CheckExceptionSafety instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const struct CWE CWE398(398U); // Indicator of Poor Code Quality
|
||||||
|
static const struct CWE CWE703(703U); // Improper Check or Handling of Exceptional Conditions
|
||||||
|
static const struct CWE CWE480(480U); // Use of Incorrect Operator
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -32,11 +32,6 @@ class Settings;
|
||||||
class ErrorLogger;
|
class ErrorLogger;
|
||||||
class Token;
|
class Token;
|
||||||
|
|
||||||
// CWE ID used:
|
|
||||||
static const struct CWE CWE398(398U); // Indicator of Poor Code Quality
|
|
||||||
static const struct CWE CWE703(703U); // Improper Check or Handling of Exceptional Conditions
|
|
||||||
static const struct CWE CWE480(480U); // Use of Incorrect Operator
|
|
||||||
|
|
||||||
|
|
||||||
/// @addtogroup Checks
|
/// @addtogroup Checks
|
||||||
/// @{
|
/// @{
|
||||||
|
|
Loading…
Reference in New Issue