Skip to content

A6-5-4 - Potential False Positive #106

@jordancolbeth

Description

@jordancolbeth

A6-5-4: For-init-statement and expression should not perform actions other than loop-counter initialization and modification

This conflicts with well published standards that say you can use an auto iterator to walk through a vector or other standard list.
i.e. for (auto iter = mapping.begin(); iter != mapping.end(); iter++)


Let's consider allowing iterators, or adding an option to allow them at least.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions