CheckExceptionSafety: moved `CWE` objects into source file (#4759)

This commit is contained in:
Oliver Stöneberg 2023-02-06 22:01:31 +01:00 committed by GitHub
parent 7ae7ad60d8
commit 7dde6c5d29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -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
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------

View File

@ -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
/// @{ /// @{