diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index 46219d230..76d379adb 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -35,11 +35,11 @@ namespace { CheckClass instance; } -static const CWE CWE398(398U); // Indicator of Poor Code Quality -static const CWE CWE404(404U); // Improper Resource Shutdown or Release -static const CWE CWE665(665U); // Improper Initialization -static const CWE CWE758(758U); // Reliance on Undefined, Unspecified, or Implementation-Defined Behavior -static const CWE CWE762(762U); // Mismatched Memory Management Routines +static const CWE CWE398(398U); // Indicator of Poor Code Quality +static const CWE CWE404(404U); // Improper Resource Shutdown or Release +static const CWE CWE665(665U); // Improper Initialization +static const CWE CWE758(758U); // Reliance on Undefined, Unspecified, or Implementation-Defined Behavior +static const CWE CWE762(762U); // Mismatched Memory Management Routines static const char * getFunctionTypeName(Function::Type type) { diff --git a/lib/checkcondition.cpp b/lib/checkcondition.cpp index 0dc2382d1..1685e5165 100644 --- a/lib/checkcondition.cpp +++ b/lib/checkcondition.cpp @@ -29,9 +29,9 @@ #include // CWE ids used -static const struct CWE CWE398(398U); // Indicator of Poor Code Quality -static const struct CWE CWE570(570U); // Expression is Always False -static const struct CWE CWE571(571U); // Expression is Always True +static const struct CWE CWE398(398U); // Indicator of Poor Code Quality +static const struct CWE CWE570(570U); // Expression is Always False +static const struct CWE CWE571(571U); // Expression is Always True //--------------------------------------------------------------------------- @@ -1024,7 +1024,7 @@ void CheckCondition::alwaysTrueFalseError(const Token *tok, bool knownResult) Severity::style, "knownConditionTrueFalse", "Condition '" + expr + "' is always " + (knownResult ? "true" : "false"), - (knownResult ? CWE571 : CWE570), false); + (knownResult ? CWE571 : CWE570), false); } void CheckCondition::checkInvalidTestForOverflow() diff --git a/lib/checkexceptionsafety.h b/lib/checkexceptionsafety.h index 05f0929da..e0507327b 100644 --- a/lib/checkexceptionsafety.h +++ b/lib/checkexceptionsafety.h @@ -27,7 +27,7 @@ // 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 CWE703(703U); // Improper Check or Handling of Exceptional Conditions /// @addtogroup Checks