Skip to content

v2.1.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@rvermeulen rvermeulen released this 13 Jul 09:03
· 2735 commits to main since this release

Release summary

  • New queries added for the following rule packages: IO2, SideEffects1, Syntax

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.7.6 in conjunction with a copy of the CodeQL standard library for C++ (github/codeql) set to the tag codeql-cli/v2.7.6.
    • Using the CodeQL Action or CodeQL runner with the codeql-bundle-20220120.

Appendix: MISRA-C-2012 new queries

New queries added to cover the following rules:

  • DIR-4-5 - IdentifiersInTheSameNameSpaceUnambiguous.ql
  • RULE-3-1 - CharacterSequencesAndUsedWithinAComment.ql
  • RULE-3-2 - LineSplicingUsedInComments.ql
  • RULE-4-1 - OctalAndHexadecimalEscapeSequencesNotTerminated.ql
  • RULE-4-4 - SectionsOfCodeShallNotBeCommentedOut.ql
  • RULE-7-2 - UOrUSuffixRepresentedInUnsignedType.ql
  • RULE-7-3 - LowercaseCharacterLUsedInLiteralSuffix.ql
  • RULE-12-1 - UnenclosedSizeofOperand.ql, ImplicitPrecedenceOfOperatorsInExpression.ql
  • RULE-13-1 - InitializerListsContainPersistentSideEffects.ql
  • RULE-13-4 - ResultOfAnAssignmentOperatorShouldNotBeUsed.ql
  • RULE-13-5 - PossibleSuppressedSideEffectInLogicOperatorOperand.ql
  • RULE-13-6 - SizeofOperandWithSideEffect.ql

Appendix: CERT-C new queries

New queries added to cover the following rules:

  • EXP30-C - DependenceOnOrderOfScalarEvaluationForSideEffects.ql, DependenceOnOrderOfFunctionArgumentsForSideEffects.ql
  • EXP44-C - UnevaluatedOperandWithSideEffect.ql
  • EXP45-C - AssignmentsInSelectionStatements.ql
  • FIO38-C - DoNotCopyAFileObject.ql
  • FIO40-C - ResetStringsOnFgetsOrFgetwsFailure.ql
  • FIO41-C - DoNotCallGetcAndPutcWithSideEffects.ql
  • FIO44-C - OnlyUseValuesForFsetposThatAreReturnedFromFgetpos.ql

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.7.6 in conjunction with a copy of the CodeQL standard library for C++ (github/codeql) set to the tag codeql-cli/v2.7.6.
    • Using the CodeQL Action or CodeQL runner with the codeql-bundle-20220120.