Skip to content

A5-16-1: Ternary operator not used as a sub expression #612

Open
@nbusser

Description

@nbusser

Affected rules

  • A5-16-1

Description

CodeQL triggers A5-16-1 on a plain ternary expression.

Example

const auto smallestSet = (setA.size() < setB.size() ? setA : setB);

Metadata

Metadata

Assignees

No one assigned

    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

    Triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions