Cevelop / Issues

The official issue tracker for Cevelop.
9 stars 1 forks source link

ES.20 false positive on range for variable #81

Closed PeterSommerlad closed 6 years ago

PeterSommerlad commented 6 years ago

Expected Behavior

        for(auto &drawable:content){
            drawable->draw(out);
        }

should be OK

Actual Behavior

on for line I get ES.20 triggered screen shot 2018-05-24 at 15 14 12

applying quick fix makes code incorrect:

    for(auto &drawable {}:content) {
            drawable->draw(out);
        }

Cevelop Version, Operating System and Compiler

current

tcorbat commented 6 years ago

Fixed. Will be available as soon as Jenkins can communicate with our repository again.