v2.12.0
Pre-release
Pre-release
Release summary
- New queries added for the following rule packages: Language2, Preprocessor6
- The following changes have been made for this release:
- Add the Python scripts under
scripts/guideline_recategorization
and the JSON schemas underschemas
. - Add the Python scripts under
scripts/shared
relied upon by the analysis report generation. EXP30-C
-DependenceOnOrderOfFunctionArgumentsForSideEffects.ql
:- Prefer the
GlobalValueNumbering
CodeQL library over theGlobalValueNumberingImpl
library, as the former yields higher quality results and the latter is going to be deprecated. This also improves performance when multiple queries are evaluated, due to more sharing of intermediate computations.
- Prefer the
EXP50-CPP
-DoNotDependOnTheOrderOfEvaluationForSideEffectsInFunctionCallsAsFunctionArguments.ql
:- Prefer the
GlobalValueNumbering
CodeQL library over theGlobalValueNumberingImpl
library, as the former yields higher quality results and the latter is going to be deprecated. This also improves performance when multiple queries are evaluated, due to more sharing of intermediate computations.
- Prefer the
M27-0-1
CstdioTypesUsed.ql
- Excludesize_t
from this rule, as it can be provided by headers other than<cstdio>
.CstdioMacrosUsed.ql
- ExcludeNULL
from this rule, as it can be provided by headers other than<cstdio>
.
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.9.4
in conjunction with a copy of the CodeQL standard library for C++ (github/codeql
) set to the tagcodeql-cli/v2.9.4
. - Using the CodeQL Action or CodeQL runner with the codeql-bundle-20220615.
- Using the CodeQL CLI version
Appendix: MISRA-C-2012 new queries
New queries added to cover the following rules:
- DIR-4-2 -
UsageOfAssemblyLanguageShouldBeDocumented.ql
- DIR-4-9 -
FunctionOverFunctionLikeMacro.ql
- RULE-1-4 -
EmergentLanguageFeaturesUsed.ql