cmake_format icon indicating copy to clipboard operation
cmake_format copied to clipboard

Indent param lists

Open nitnelave opened this issue 2 years ago • 1 comments

The indentation pattern that I use in my project goes like this:

add_library(
  lib_name
  STATIC
  DEPENDS
    dependency1
    dependency2
  EXCLUDE_FROM_ALL
)

Is there a way to achieve that with cmake_format? I couldn't find out how.

Notably:

  • Nothing on the same line as the command
  • No keyword + argument on the same line for lists (single-argument keywords on the same line)
  • extra indentation for lists, but not for positional arguments

nitnelave avatar Feb 08 '23 10:02 nitnelave

Has there been any communication on this? This would be a great feature to have.

AhiyaHiya avatar Apr 04 '23 05:04 AhiyaHiya