Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added clang AD entry; fixed some typos

...

Code Block
bgColor#FFcccc
langcpp
class C {
  int DependsOnSomeVal;
  int SomeVal;

 
public:
  C(int val) : SomeVal(val), DependsOnSomeVal(SomeVal + 1) {}
};

...

Code Block
bgColor#ccccff
langcpp
class B1 {
  int Val;
 
public:
  B1(int V) : Val(V) {}
};

class B2 {
  int OtherVal;
 
public:
  B2(int V) : OtherVal(V) {}
};

class D : B1, B2 {
  D(int A) : B2B1(A), B1B2(A) {}
};

Risk Assessment

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

OOP37-CPP

Medium

Unlikely

Medium

P4

L3

...

Tool

Version

Checker

Description

 PRQA QA-C++

 
Include Page
PRQA QA-C++_v
PRQA QA-C++_v

4053,4056,4058

 
Clang
Include Page
Clang_V
Clang_V
-Wreorder 

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

...