cheshirekow / cmake_format

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

Inline Directives / pragma disable are body scope #271

Open jayvdb opened 3 years ago

jayvdb commented 3 years ago

https://github.com/cheshirekow/cmake_format/blob/904c42da298f7fda932d9ac774517c20e2667fb8/cmakelang/doc/lint-inline.rst states:

Warning

Currently this pragma must be specified at body scope (e.g. it cannot be a comment within a statement) and it applies for the duration of the scope. This behavior will likely change in the future.

I couldnt see an issue about this. I expect many users would benefit from being able to apply a disable pragma to individual lines. It would be helpful to have some design input on where per-line pragmas should be placed.