Skip to content

A7-1-5: Ignore initializers of non-fundamental types #395

Closed
@lcartey

Description

@lcartey

Affected rules

  • A7-1-5

Description

The rule clearly states that initializers of non-fundamental types are excluded:

When declaring a variable that is initialized with a function call or initializer of non-fundamental type.

However we currently only exclude ClassAggregateLiterals and function calls.

Example

class Foo { };
Foo f;
...
auto& a = f;

Metadata

Metadata

Assignees

Labels

Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to addressImpact-Mediumfalse 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

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions