MaciejPatro / cmake-tidy

Project provides a set of tools that will ease the development process for code written in CMake.
MIT License
16 stars 0 forks source link

`foreach` loop modernization for handling introduced in CMake 3 version #147

Open MaciejPatro opened 4 years ago

MaciejPatro commented 4 years ago

Based on #145

Input:

foreach(X aa bb cc dd)
    message("${X}")
endforeach()

Expected (refactored) output:

foreach(X IN ITEMS aa bb cc dd)
    message("${X}")
endforeach()