2.2.0-alpha1
Resolved issues
The following issues have been fixed in this release of the analyzer.
Internal ID | Call ID | Summary | Notes |
---|---|---|---|
CPP-256 | - | CASTONCAST: access violation while parsing template | As a result of this fix, objects and links may increase. Also, as the files are not be skipped, analysis time may increase. |
CPP-257 | - | CASTONCAST: access violation while parsing function declaration | As a result of this fix, objects and links may increase. Also, as the files are not be skipped, analysis time may increase. |
CPP-271 | - | CASTONCAST: False violation for "All if … else if constructs shall be terminated with an else clause (C/C++)" if else is not delimited by {} | |
CPP-274 | - | CASTONCAST: False violations for "Avoid non-void return type function without an explicit return of an expression (C/C++)" | In certain cases, constructors and destructors were detected as C++ Function instead of constructors and destructors. In such cases, false violations was displayed. This has been fixed. |
CPP-275 | - | CASTONCAST: False Violation for "Ensure Switch statements have at least 2 case clauses (C/C++)" with nested switch | |
CPP-276 | - | CASTONCAST: False violation for "Avoid missing default in switch statements" with nested switch | |
CPP-283 | - | Run-time exception while parsing struct when macro used in struct is not resolved | As a result of this fix, objects and links may increase. Also, as the files are not be skipped, analysis time may increase. |
CPP-284 | - | CASTONCAST: False violation for "Avoid using "sizeof" on expressions that contain side effects" when using C++ version of _countof |
New rules
The following new rules have been added in this release of the analyzer:
Rule ID | Rule Name |
---|---|
1065066 | Avoid having a method call or additional expressions in a statement using "+" or "--" operators (C/C+) |
1065068 | Avoid using Digraphs (C++) |
1065070 | Avoid using Trigraphs |
1065072 | Avoid using Unions |
1065074 | All constructors that are callable with a single argument of fundamental type shall be declared explicit. |
1065076 | Avoid declaring data members in non-POD classes as public or protected |
1065078 | A base class shall be declared virtual only if it is used in a diamond hierarchy |