Skip to content

Commit 7dde6c5

Browse files
authored
CheckExceptionSafety: moved CWE objects into source file (#4759)
1 parent 7ae7ad6 commit 7dde6c5

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

lib/checkexceptionsafety.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ namespace {
3535
CheckExceptionSafety instance;
3636
}
3737

38+
static const struct CWE CWE398(398U); // Indicator of Poor Code Quality
39+
static const struct CWE CWE703(703U); // Improper Check or Handling of Exceptional Conditions
40+
static const struct CWE CWE480(480U); // Use of Incorrect Operator
3841

3942
//---------------------------------------------------------------------------
4043

lib/checkexceptionsafety.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ class Settings;
3232
class ErrorLogger;
3333
class Token;
3434

35-
// CWE ID used:
36-
static const struct CWE CWE398(398U); // Indicator of Poor Code Quality
37-
static const struct CWE CWE703(703U); // Improper Check or Handling of Exceptional Conditions
38-
static const struct CWE CWE480(480U); // Use of Incorrect Operator
39-
4035

4136
/// @addtogroup Checks
4237
/// @{

0 commit comments

Comments
 (0)