Skip to content

v2.12.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 17 Dec 00:14
2b3988c

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 under schemas.
  • Add the Python scripts under scripts/shared relied upon by the analysis report generation.
  • EXP30-C - DependenceOnOrderOfFunctionArgumentsForSideEffects.ql:
    • Prefer the GlobalValueNumbering CodeQL library over the GlobalValueNumberingImpl 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.
  • EXP50-CPP - DoNotDependOnTheOrderOfEvaluationForSideEffectsInFunctionCallsAsFunctionArguments.ql:
    • Prefer the GlobalValueNumbering CodeQL library over the GlobalValueNumberingImpl 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.
  • M27-0-1
    • CstdioTypesUsed.ql - Exclude size_t from this rule, as it can be provided by headers other than <cstdio>.
    • CstdioMacrosUsed.ql - Exclude NULL 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 tag codeql-cli/v2.9.4.
    • Using the CodeQL Action or CodeQL runner with the codeql-bundle-20220615.

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