Skip to content
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

A3-9-1: Ignore use of int in operator increment/decrement #614

Closed
lcartey opened this issue Jun 6, 2024 · 1 comment · Fixed by #625
Closed

A3-9-1: Ignore use of int in operator increment/decrement #614

lcartey opened this issue Jun 6, 2024 · 1 comment · Fixed by #625
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-Low Phase III Standard-AUTOSAR user-report Issue reported by an end user of CodeQL Coding Standards

Comments

@lcartey
Copy link
Collaborator

lcartey commented Jun 6, 2024

Affected rules

  • A3-9-1

Description

Post-increment and post-decrement operators are required by the standard to have a dummy int parameter, and so should not be reasonably flagged by this rule.

Example

 constexpr reverse_iterator operator++(int);
@lcartey lcartey added 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-Low user-report Issue reported by an end user of CodeQL Coding Standards labels Jun 6, 2024
@knewbury01 knewbury01 self-assigned this Jun 24, 2024
@knewbury01 knewbury01 moved this from Triaged to Ready for review in Coding Standards Public Development Board Jun 24, 2024
@jokerputihboy

This comment was marked as spam.

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-Low Phase III Standard-AUTOSAR user-report Issue reported by an end user of CodeQL Coding Standards
Projects
Development

Successfully merging a pull request may close this issue.

4 participants