cmakefmt-rust 1.7.0

A fast, correct CMake formatter
Documentation
# SPDX-FileCopyrightText: Copyright 2026 Puneet Matharu
#
# SPDX-License-Identifier: MIT OR Apache-2.0
#
# Snapshot of the CMake 4.3.1 scripting + module command surface — the
# union of `cmake --help-command-list` and the commands contributed by
# CMake's bundled modules (`Check<X>`, `FetchContent`, `ExternalProject`,
# packaging helpers, etc.). Used as the reference list for
# `cmakefmt dump spec-coverage` to report which commands the formatter
# does or does not model.
#
# Provenance: derived from the audited `src/spec/builtins.yaml` +
# `src/spec/modules.yaml` corpus and known CMake 4.x commands.
# Refresh with:
#   cmake --help-command-list > /tmp/cmds.txt
#   # then merge into this file, preserving comments
#
# Format: one command name per line; comments start with `#`.
# Lines are case-insensitive (CMake commands are case-insensitive);
# canonical form is lowercase.

add_compile_definitions
add_compile_options
add_compiler_export_flags
add_custom_command
add_custom_target
add_definitions
add_dependencies
add_executable
add_feature_info
add_file_dependencies
add_jar
add_library
add_link_options
add_subdirectory
add_test
android_add_test_data
aux_source_directory
block
break
build_command
build_name
check_c_compiler_flag
check_c_source_compiles
check_c_source_runs
check_compiler_flag
check_cxx_accepts_flag
check_cxx_compiler_flag
check_cxx_source_compiles
check_cxx_source_runs
check_cxx_symbol_exists
check_fortran_compiler_flag
check_fortran_function_exists
check_fortran_source_compiles
check_fortran_source_runs
check_function_exists
check_include_file
check_include_file_cxx
check_include_files
check_ipo_supported
check_language
check_library_exists
check_linker_flag
check_objc_compiler_flag
check_objc_source_compiles
check_objc_source_runs
check_objcxx_compiler_flag
check_objcxx_source_compiles
check_objcxx_source_runs
check_pie_supported
check_prototype_definition
check_source_compiles
check_source_runs
check_struct_has_member
check_symbol_exists
check_type_size
check_variable_exists
clear_bundle_keys
cmake_add_fortran_subdirectory
cmake_dependent_option
cmake_expand_imported_targets
cmake_file_api
cmake_force_c_compiler
cmake_force_cxx_compiler
cmake_force_fortran_compiler
cmake_host_system_information
cmake_instrumentation
cmake_language
cmake_minimum_required
cmake_parse_arguments
cmake_path
cmake_pkg_config
cmake_policy
cmake_pop_check_state
cmake_print_properties
cmake_print_variables
cmake_push_check_state
cmake_reset_check_state
configure_file
configure_package_config_file
continue
copy_and_fixup_bundle
copy_resolved_framework_into_bundle
copy_resolved_item_into_bundle
cpack_add_component
cpack_add_component_group
cpack_add_install_type
cpack_configure_downloads
cpack_ifw_add_package_resources
cpack_ifw_add_repository
cpack_ifw_configure_component
cpack_ifw_configure_component_group
cpack_ifw_configure_file
cpack_ifw_update_repository
create_javadoc
create_javah
create_test_sourcelist
csharp_get_dependentupon_name
csharp_get_filename_key_base
csharp_get_filename_keys
csharp_set_designer_cs_properties
csharp_set_windows_forms_properties
csharp_set_xaml_cs_properties
ctest_build
ctest_configure
ctest_coverage
ctest_coverage_collect_gcov
ctest_empty_binary_directory
ctest_memcheck
ctest_read_custom_files
ctest_run_script
ctest_sleep
ctest_start
ctest_submit
ctest_test
ctest_update
ctest_upload
define_property
else
elseif
enable_language
enable_testing
endblock
endforeach
endfunction
endif
endmacro
endwhile
exec_program
execute_process
export
export_jars
export_library_dependencies
external_project_add
externaldata_add_target
externaldata_add_test
externaldata_expand_arguments
feature_summary
file
find_dependency
find_file
find_jar
find_library
find_package
find_package_check_version
find_package_handle_standard_args
find_package_message
find_path
find_program
fixup_bundle
fixup_bundle_item
fltk_wrap_ui
foreach
fortrancinterface_header
fortrancinterface_verify
function
generate_export_header
get_bundle_all_executables
get_bundle_and_executable
get_bundle_keys
get_bundle_main_executable
get_cmake_property
get_directory_property
get_dotapp_dir
get_filename_component
get_item_key
get_item_rpaths
get_property
get_source_file_property
get_target_property
get_test_property
gnuinstalldirs_get_absolute_install_dir
gtest_add_tests
gtest_discover_tests
if
include
include_directories
include_external_msproject
include_guard
include_regular_expression
install
install_files
install_jar
install_jar_exports
install_jni_symlink
install_programs
install_targets
link_directories
link_libraries
list
load_cache
load_command
macro
make_directory
mark_as_advanced
math
message
option
output_required_files
pkg_check_modules
pkg_get_variable
pkg_search_module
print_disabled_features
print_enabled_features
processorcount
project
qt_wrap_cpp
qt_wrap_ui
remove
remove_definitions
return
select_library_configurations
separate_arguments
set
set_bundle_key_values
set_directory_properties
set_feature_info
set_package_info
set_package_properties
set_property
set_source_files_properties
set_target_properties
set_tests_properties
site_name
source_group
string
subdir_depends
subdirs
swig_add_library
swig_link_libraries
target_compile_definitions
target_compile_features
target_compile_options
target_include_directories
target_link_directories
target_link_libraries
target_link_options
target_precompile_headers
target_sources
test_big_endian
try_compile
try_run
unset
use_mangled_mesa
utility_source
variable_requires
variable_watch
verify_app
verify_bundle_prerequisites
verify_bundle_symlinks
while
write_basic_config_version_file
write_basic_package_version_file
write_compiler_detection_header
write_file