Release summary
- New queries added for the following rule packages: Banned2, Banned3, Banned4, Classes4, DeadCode10, Declarations2
- The following changes have been made for this release:
A0-1-3-UnusedLocalFunction.ql:- Query now reports unused public members of classes in anonymous namespaces, which have internal linkage.
- Alert message no longer contains the fully qualified name of the function, since the given function is already linked.
DCL40-C-IncompatibleObjectDeclarations.ql:- The rule now is capable to detect equivalence based on compatible types instead of exact types (which was what it was previously checking on objects). This will eliminate false positives for some array types and types using equivalent typedefs.
Supported versions
- The LGTM pack is not supported on any released version of LGTM without support from GitHub Professional Services.
- The Code Scanning pack is supported when:
- Using the CodeQL CLI version
2.21.4in conjunction with a copy of the CodeQL standard library for C++ (github/codeql) set to the tagcodeql-cli/v2.21.4. - Using the CodeQL Action or CodeQL runner with the codeql-bundle-v2.21.4.
- Using the CodeQL CLI version
Appendix: MISRA-C++-2023 new queries
New queries added to cover the following rules:
- RULE-0-2-4 -
UnusedLimitedVisibilityFunction.ql - RULE-6-2-2 -
IncompatibleObjectDeclarationsCpp.ql,IncompatibleFunctionDeclarationsCpp.ql - RULE-6-7-1 -
LocalVariableStaticStorageDuration.ql - RULE-10-2-2 -
UnscopedEnumerationsShouldNotBeDeclared.ql - RULE-10-2-3 -
UnscopedEnumWithoutFixedUnderlyingTypeUsed.ql - RULE-10-3-1 -
UnnamedNamespacesInHeaderFiles.ql - RULE-15-1-4 -
NonStaticMemberNotInitBeforeUse.ql