v2.19.0
Pre-release
Pre-release
Release summary
- No new queries were added for this release
- The following changes have been made for this release:
A16-0-1- reduce unneeded results related to#pragma, as it's already reported by A16-7-1.DCL51-CPP- reduce false positives related to use of__func__A2-10-1- reduce false positives for identifiers in same scope and relating to template variablesRULE-5-3- reduce false positives for identifiers in same scopeA5-1-1- reduce false positives by omitting literals written into file streams and wrappers around log and stream callsA14-7-2- alert messages have been slightly adjusted to refer only to the base name of a file, not the full relative path.DCL56-CPP- performance has been improved for databases with complex initializers.- Exclude the use of
__func__from certain queries, as it is the proscribed way to return the name of the current function:A27-0-4- Use of the value returned by__func__is no longer flagged as a use of C-style strings.A18-1-1-__func__is no longer flagged as a declaration of a variable using C-style arrays.
DCL51-CPP-cpp/cert/use-of-single-underscore-reserved-prefix- remove false positives which were compiler generated, such as the function_FUNgenerated by the compiler for lambdas converted to function pointers.
Fix issues emerged running the test suite when compiled withqcc:
- Fix False Negatives issues
A1-1-1: restrict alerts to mentioned typesA5-2-5: get type forvalue_typeA18-1-2A18-1-3A18-9-1: support std inline namespaces (std::__1)A23-0-1A23-0-2: functions instdmight be defined in inline namespacesM0-1-4: removed test caseM6-5-2: equality operator alternative implementationsM17-0-5:longjmpmight be a macroCTR51-CPPCTR53-CPPERR50-CPPERR52-CPPSTR52-CPP: fixed by library changesMSC51-CPP:timecan be in the global scopeSTR51-CPP: String constructor might have 1 parameter.
- Fix False Positives issues
STR53-CPP: compute initial container size for copy constructorA0-4-1: numeric limits might be defined in__libcpp_numeric_limitsA0-4-3: the rule now only checks the last-stdcompilation flag
- Fix exclusion criteria using the
isExcluded()predicateA2-13-3A8-4-4
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.10.5in conjunction with a copy of the CodeQL standard library for C++ (github/codeql) set to the tagcodeql-cli/v2.10.5. - Using the CodeQL Action or CodeQL runner with the codeql-bundle-20220908.
- Using the CodeQL CLI version