cheshirekow / cmake_format

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

first-comment-is-literal doesn't work when formatting multiple files #284

Open nimrod-gileadi opened 2 years ago

nimrod-gileadi commented 2 years ago

I'm using cmakelang 0.6.13.

When I call cmake-format on two files, with --first-comment-is-literal (I haven't tried the first_comment_is_literal config file option), the copyright notice in the first file remains untouched as expected, but on the second file it's formatted.

My workaround is to run the formatter separately on those two files.

wkjung commented 2 years ago

Seems like --enable-markup=false doesn't work for multiple files, too. The first file is only affected.