Skip to content

A3-9-1: Variables having template parameter type are recognized as having variable-width type. #536

@marco-seoul-robotics

Description

@marco-seoul-robotics

Affected rules

  • A3-9-1

Description

Variables with template parameter type are recognized as having variable-width type.

Example

template <class TScalar>
explicit constexpr Matrix(TScalar value = TScalar{}) noexcept { data_.fill(value); }

Error was detected here, describing Variable 'value' has variable-width type.

Metadata

Metadata

Assignees

Labels

Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to addressImpact-MediumStandard-AUTOSARfalse positive/false negativeAn issue related to observed false positives or false negatives.user-reportIssue reported by an end user of CodeQL Coding Standards

Type

No type

Projects

Status

Closed (Duplicate)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions