cheshirekow / cmake_format

Source code formatter for cmake listfiles.
GNU General Public License v3.0
962 stars 105 forks source link

Request: Add ability to blacklist line breaks after certain words #301

Open AaronDMarasco opened 1 year ago

AaronDMarasco commented 1 year ago

I'd like the ability to set keywords to never have a newline follow, like "NOT" and "DEFINED" - seems dumb/ugly to format code to

if(NOT
    DEFINED
    CMAKE_...
)

or maybe just not apply max_pargs_hwrap/max_rows_cmdline to if() statements? (I'm not sure which setting is making this happen).