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_FUN
generated 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_type
A18-1-2
A18-1-3
A18-9-1
: support std inline namespaces (std::__1
)A23-0-1
A23-0-2
: functions instd
might be defined in inline namespacesM0-1-4
: removed test caseM6-5-2
: equality operator alternative implementationsM17-0-5
:longjmp
might be a macroCTR51-CPP
CTR53-CPP
ERR50-CPP
ERR52-CPP
STR52-CPP
: fixed by library changesMSC51-CPP
:time
can 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_limits
A0-4-3
: the rule now only checks the last-std
compilation flag
- Fix exclusion criteria using the
isExcluded()
predicateA2-13-3
A8-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.5
in 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