CLion formatting range base for loop space before colon

Answered

CLion 2019.1

Formatting a range base 'for' loop. Ctrl-Alt-L to format C++ code gives me

for (auto color: colors)

what I want is a space before the colon

for (auto color : colors)

as per https://github.com/cpplint/cpplint checks.

 

Editor->Code Style->C/C++->Spaces

Under Other there is After 'for' semicolon and Before 'for' semicolon. Where's the Before 'for' colon?)

 

 

3

Please sign in to leave a comment.