Skip to content

Latest commit

 

History

History
8 lines (8 loc) · 348 Bytes

2023-10-24-a7-1-5-non-fundamental.md

File metadata and controls

8 lines (8 loc) · 348 Bytes
  • A7-1-5 - exclude auto variables initialized with an expression of non-fundamental type. Typically this occurs when using range based for loops with arrays of non-fundamental types. For example:
    void iterate(Foo values[]) {
       for (auto value : values) { // COMPLIANT (previously false positive)
          // ...
       }
    }