A12-8-6
: Compiler generated special functions are not consistently flagged
#811
Labels
Difficulty-Medium
A false positive or false negative report which is expected to take 1-5 days effort to address
false positive/false negative
An issue related to observed false positives or false negatives.
Impact-Medium
Affected rules
A12-8-6
Description
Compiler generated special functions are not always flagged by this rule, because the extractor does not always generate them.
In CodeQL CLI
v2.16.6
and before, this mainly affected non-template classes. However, after the upgrade to CodeQL CLIv2.18.4
, special functions are not consistently generated for template classes either.This can be addressed by extending the
TrivialType
library to support additional cases where the function would be compiler generated, but where it currently isn't detected.Example
codeql-coding-standards/cpp/autosar/test/rules/A12-8-6/test.cpp
Line 15 in adcb380
codeql-coding-standards/cpp/autosar/test/rules/A12-8-6/test.cpp
Line 124 in adcb380
The text was updated successfully, but these errors were encountered: