cmake_format icon indicating copy to clipboard operation
cmake_format copied to clipboard

Source code formatter for cmake listfiles.

Results 133 cmake_format issues
Sort by recently updated
recently updated
newest added

I'm having some headaches with how cmake-format handles wrapping in my files. In some cases its great and in others not so much. I unfortunately do not have the time...

Take a look at this code formatted with default settings: ``` install( FILES log_handler.cpp DESTINATION "usr/local/bin" COMPONENT bin) ``` I would prefer it not to be wrapped at all. I...

I have a function that has [bracket comments](https://cmake.org/cmake/help/latest/manual/cmake-language.7.html#bracket-comment) inside the declaration: ```cmake function(myFunction #[[target]] #[[linker_script]]) if(${ARGC} GREATER 0) set(target ${ARGV0}) else() set(target ${PROJECT_NAME}) endif() endfunction() ``` Doing a `--check` on...

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...

cmake-format usually takes a couple of seconds to format the document. This locks the editing in the editor making it unusable.

Hi, when running `cmake-format -i /tmp/test.cmake` on test.cmake: ```CMake if(((NOT (IMAGE_NAME STREQUAL "foo1")) OR FOO) AND (NOT (BOARD MATCHES "foo2" AND ( IMAGE_NAME STREQUAL "foo3" OR IMAGE_NAME STREQUAL "foo4" OR...

Hi, I'm trying to understand which flags do I have to set in the configuration file to get exactly this output: https://cmake-format.readthedocs.io/en/latest/format-case_studies.html#columnized-arguments ( first block ) Thank you in advance,...

Thank you for these great tools! We have encountered a little problem with it, and it's quite easy to reproduce: cmake-lint crashes with empty file (default config) ``` $ touch...

I keep getting this stack trace from cmake-lint: ``` ERROR An internal error occured. Please consider filing a bug report at github.com/cheshirekow/cmakelang/issues Traceback (most recent call last): File "/Users/benvining/.cache/pre-commit/repoacwprtdr/py_env-python3/lib/python3.9/site-packages/cmakelang/lint/__main__.py", line...

If we call cmake-format like that: ``` cmake-format file1.cmake file2.cmake -i --line-width=120 --tab-size=4 ``` line-width and tab-size will be only applied to file1.cmake. file2.cmake will be formatted with default config...

acknowledged