Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
marco-seoul-robotics opened this issue Feb 16, 2024 · 1 comment
Assignees
Labels
Difficulty-Low A false positive or false negative report which is expected to take <1 day effort to address false positive/false negative An issue related to observed false positives or false negatives. Impact-Medium Standard-AUTOSAR user-report Issue reported by an end user of CodeQL Coding Standards

Comments

@marco-seoul-robotics
Copy link

marco-seoul-robotics commented Feb 16, 2024

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.

@marco-seoul-robotics marco-seoul-robotics added the false positive/false negative An issue related to observed false positives or false negatives. label Feb 16, 2024
@lcartey lcartey added the user-report Issue reported by an end user of CodeQL Coding Standards label Oct 18, 2024
@lcartey lcartey moved this from Reported to Assigned in Coding Standards Public Development Board Oct 18, 2024
@lcartey lcartey self-assigned this Oct 18, 2024
@lcartey lcartey reopened this Oct 18, 2024
@lcartey lcartey added Difficulty-Low A false positive or false negative report which is expected to take <1 day effort to address Impact-Medium labels Oct 18, 2024
@lcartey
Copy link
Collaborator

lcartey commented Oct 18, 2024

Closing as a duplicate of #540.

@lcartey lcartey closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2024
@lcartey lcartey moved this from Done to Closed (Duplicate) in Coding Standards Public Development Board Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty-Low A false positive or false negative report which is expected to take <1 day effort to address false positive/false negative An issue related to observed false positives or false negatives. Impact-Medium Standard-AUTOSAR user-report Issue reported by an end user of CodeQL Coding Standards
Projects
Status: Closed (Duplicate)
Development

No branches or pull requests

3 participants