Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
520 commits
Select commit Hold shift + click to select a range
74247f0
CMake: Install libs with static and debug suffix.
Nov 30, 2024
ae5946e
CMake: Add pdb install.
Nov 30, 2024
7f849d1
CMake: Bump minimum version.
Dec 1, 2024
6628a10
CMake: Move versionscript block to zlib definition.
Dec 1, 2024
76c6a86
CMake: Set version in project call.
Dec 1, 2024
6762467
CMake: Rename examples and tests to avoid chain building confusion.
Dec 1, 2024
2b2eec6
CMake: Remove unneeded renaming for in-tree builds and the option for…
Dec 1, 2024
902f6ee
CMake: Remove checks for sys/types.h, stdint.h and stddef.h.
Dec 1, 2024
feb7fd3
CMake: Remove doubled include directories.
Dec 1, 2024
31d2462
CMake: Move compile_definitions to the targets.
Dec 1, 2024
899ef97
CMake: Use the same definition we checked for off64_t.
Dec 1, 2024
1af1bb6
CMake: Let cmake handle zlib1.rc.
Dec 1, 2024
ffbbe01
CMake: Remove allowance for unclosed constructs.
Dec 1, 2024
64e8307
CMake: Make formatting consistent.
Dec 1, 2024
c18815b
CMake: Simplify to one install option.
Dec 1, 2024
b6cb6f4
CMake: Rename examples to testing to reflect their intent.
Dec 1, 2024
c33f3bc
CMake: Move version setting for Cygwin into set_target_properties.
Dec 1, 2024
48b9ee4
CMake: Use CMAKE_DEBUG_POSTFIX for simplification.
Dec 2, 2024
633ec87
CMake: Add zlib1.rc to Cygwin build.
Dec 2, 2024
f0175c6
CMake: Add INSTALL_INTERFACE for a proper export.
Dec 2, 2024
f7ab6e4
CMake: Add aliases to match the export names.
Dec 2, 2024
e37a1a8
CMake: Warn if no build-type is selected.
Dec 3, 2024
f4624f3
CMake: Add zlibExport.
Dec 3, 2024
a794225
CMake: Permit install to put different things in different places.
Dec 3, 2024
7dc2b78
CMake: Add test for usage with find_package.
Dec 3, 2024
1fce5f2
CMake: Add more tests.
Dec 4, 2024
6084c55
CMake: Set the platform and configuration for the tests.
Dec 5, 2024
4d74e44
CMake: Add the version to the exported configuration.
Dec 5, 2024
01ef679
CMake: Pass CC and CFLAGS to the tests.
Dec 5, 2024
494830e
CMake: Remove use of ZLIB_BUILD_EXAMPLES option in workflow.
Dec 5, 2024
e0b78ce
CMake: Name the shared library cygz.dll on Cygwin.
Dec 5, 2024
b74d77a
CMake: Install compatible DLL on MinGW.
Dec 5, 2024
fd00a94
CMake: Disable MinGW and Cygwin tests.
Dec 5, 2024
155d883
CMake: Test static builds.
Dec 5, 2024
15ba505
CMake: Adapt pkgconfig-file to the GnuInstallDirs layout.
Dec 5, 2024
53c2727
CMake: Silence deprecation warning on the action runners.
Dec 5, 2024
9e058e8
CMake: Add option for ZLIB_PREFIX.
Dec 7, 2024
3d6dc3c
CMake: Create zconf.h from zconf.h.in.
Dec 7, 2024
b5c0197
CMake: Remove zconf.h.
Dec 7, 2024
79d96eb
CMake: Clear variable with unset.
Dec 11, 2024
a7c6dbf
CMake: Detect visibility attribute in MSVC.
Dec 11, 2024
8266565
CMake: Remove leading underscore from _LARGEFILE64_SOURCE.
Dec 11, 2024
cff14d5
CMake: Use the full version number.
Dec 11, 2024
adb40de
CMake: Indicate a clear signature in add_test.
Dec 11, 2024
d7afcaa
CMake: Shorten test names.
Dec 11, 2024
9203852
CMake: Fix parallel testing.
Dec 11, 2024
5ff476e
CMake: Add minizip.
Dec 11, 2024
aefb4b5
CMake: Rename exports of minizip.
Dec 12, 2024
5f98365
CMake: Install ints.h for minizip.
Dec 15, 2024
dfaf27b
CMake: Change to FindZLIB and ZLIB.cmake.
Dec 15, 2024
99d41ee
CMake: Make minizip search for config.
Dec 15, 2024
5163cb6
CMake: Move testing into test/CMakeLists.txt.
Dec 22, 2024
d3ab1df
CMake: Test minizip in the workflows.
Dec 24, 2024
2719817
CMake: Correct target to minizip.
Dec 24, 2024
9345760
CMake: Add inflate coverage test.
Dec 24, 2024
0b9b43b
Fix inflate coverage test in Makefile.in.
Dec 24, 2024
d80817a
CMake: Restore leading underscore in _LARGEFILE64_SOURCE.
Dec 24, 2024
3b61356
CMake: Prefix coverage test name with zlib.
Dec 25, 2024
1869359
CMake: Split the builds of infcover and minizip in workflow.
Dec 25, 2024
c7e9d28
CMake: Do just one build with -Werror in workflow.
Dec 25, 2024
c9467bd
Correct QEMU package name to qemu-system in workflow.
Dec 25, 2024
a5db296
CMake: Increase CMake version to 3.10 for tests.
Dec 25, 2024
9ddf1b4
CMake: Correct build directory for second workflow run.
Dec 25, 2024
4491916
Adjust coverage testing to the llvm gcov calling convention.
Dec 25, 2024
121e416
CMake: Increase CMake version to 3.12 for minizip tests.
Dec 25, 2024
2408ded
Support clang without version suffix for coverage testing.
Dec 25, 2024
039c361
Remove -Werror from configure workflow.
Dec 25, 2024
e677f1f
Disable make cover if no gcov was found.
Dec 25, 2024
9d25fa3
Use consistent comment style in minizip.
Dec 26, 2024
0263e58
CMake: Prevent a 32-bit minizip build.
Dec 26, 2024
09b21eb
Correct one more comment style in minizip.
Dec 26, 2024
e573155
CMake: Add CPack.
Dec 26, 2024
5a2ca3c
CMake: Add packaging to tests.
Dec 26, 2024
c99a4ae
CMake: Depend on bzip2 only if it's found.
Dec 27, 2024
373bc1d
CMake: Uncomment stop sign.
Dec 27, 2024
d82da0f
CMake: Remove cmake out-of-tree test.
Dec 27, 2024
ede311d
CMake: Make bzip2 optional.
Dec 27, 2024
15a3751
CMake: Order the includes consistently.
Dec 30, 2024
f42008f
CMake: Avoid double inclusion of CPack warning.
Dec 30, 2024
62b5b4e
CMake: Make bzip2 required if it's requested.
Dec 30, 2024
5fd6344
CMake: Search for zlib by CONFIG to get all needed targets.
Dec 30, 2024
8fee881
CMake: Clean up formatting.
Dec 30, 2024
d512557
CMake: Do not link to bzip2.
Dec 30, 2024
e843c63
CMake: Refine tests.
Dec 30, 2024
abf7487
CMake: Add components selection.
Dec 31, 2024
10a12ec
CMake: Correct wording for minizip options.
Dec 31, 2024
33b8e6f
CMake: Rename option to ZLIB_INSTALL.
Dec 31, 2024
42a670e
CMake: Restore lost variable.
Dec 31, 2024
1be9392
CMake: Add a README.cmake.
Dec 31, 2024
c310998
CMake: Add one more alias for llvm-cov.
Dec 31, 2024
7667ca5
CMake: Re-enable Cygwin and MSYS tests.
Dec 31, 2024
b8ae23d
CMake: Disable bzip2 for tests.
Dec 31, 2024
b9cf26c
CMake: Increase CMake minimum version to 3.12.
Dec 31, 2024
00cbe1d
CMake: Disable testing on Cygwin.
Dec 31, 2024
4f2671d
CMake: Remove unused variable.
Jan 3, 2025
8b8a124
CMake: Add cmake-format.yaml and reformat the cmake files.
Jan 3, 2025
6925d39
CMake: Fix typo.
Jan 3, 2025
734f974
CMake: Re-enable Cygwin tests without Ninja.
Jan 22, 2025
213998f
CMake: Include bzip2 in the interface.
Jan 22, 2025
6c224f1
CMake: Change README-cmake to README-cmake.md with formatting.
Jan 22, 2025
03449d4
CMake: Re-enable testing with bzip2.
Jan 22, 2025
1cac365
CMake: Add make to Cygwin.
Jan 22, 2025
63ded6f
CMake: Install missing bzip2 in workflow.
Jan 22, 2025
c6d4492
CMake: Switch from make back to ninja.
Jan 22, 2025
5760ba1
CMake: Correct runner.os to Linux.
Jan 22, 2025
05051d2
CMake: Install bzip2 on Cygwin in workflow.
Jan 22, 2025
6c2ab4d
CMake: Do not test with bzip2 on Windows or Cygwin.
Jan 22, 2025
5a31e52
CMake: Add the tested version of cmake (3.31).
Jan 22, 2025
cdb3ab1
CMake: Correct workflow options to disable bzip2 on Windows.
Jan 22, 2025
2c62f88
CMake: Clean up spaces in required versions.
Jan 22, 2025
953b3d7
CMake: Correct workflow line continuation.
Jan 22, 2025
de4dea8
CMake: Disable minizip on Cygwin.
Jan 22, 2025
4891d81
CMake: Give minizip a suffix on Cygwin as well.
Jan 24, 2025
61a56bc
CMake: Make USE_FILE32API part of the interface.
Jan 24, 2025
ec346f1
Update Makefile to not recreate zconf.h and zconf.h.cmakein.
madler Feb 1, 2025
ab0266a
Avoid use of memcpy() in inflate when areas can overlap.
madler Feb 2, 2025
ed16107
Revert previous commit, restoring the memcpy() call.
madler Feb 2, 2025
c715ad7
Restore zconf.h to distribution.
madler Feb 5, 2025
0b29118
Fix Ada bindings on x64.
spectralio Feb 5, 2025
d20659f
Repair MinGW cmake build.
Feb 6, 2025
8a844d4
Use zconf.h instead of zconf.h.in for cmake.
madler Feb 7, 2025
00161ef
Do not look for zconf.h in the source directory.
Vollstrecker Feb 12, 2025
7108497
Check that HAVE_UNISTD_H and HAVE_STDARG_H are not defined as 0.
madler Feb 14, 2025
5a82f71
Use generated zconf.h in cmake build.
Feb 18, 2025
4d1c720
Remove some unsightly spaces in zlib.h.
madler Feb 21, 2025
aa27ba4
Avoid a fruitless memory copy in gzread.c.
madler Feb 21, 2025
a4e4521
Have gz_skip() update how far it got for later continuation.
madler Feb 21, 2025
aeab3f6
Clarify the use of errnum in gzerror().
madler Feb 23, 2025
aaf94f3
Note that gzseek() requests are deferred until the next operation.
madler Feb 25, 2025
a9bb8c4
Note the use of gzungetc() to run a deferred seek while reading.
madler Feb 25, 2025
6832082
Constrain line lengths in inflate code.
madler Feb 25, 2025
7838863
Correct Visual Studio readme.txt.
skydvr Mar 7, 2025
473f785
Fix bug in inflatePrime() for 16-bit ints.
madler Mar 22, 2025
1ab1026
Add a "G" option to force gzip, disabling transparency in gzread().
madler May 11, 2025
95278e4
Improve the discrimination between trailing garbage and bad gzip.
madler Apr 10, 2025
a2b6127
Allow gzflush() to write empty gzip members.
madler May 12, 2025
d0fc110
Remove redundant frees of point list on error in examples/zran.c.
madler May 16, 2025
3e8e4bb
Clarify the use of inflateGetHeader().
madler May 17, 2025
bac2e2d
CMake: Fix typos in test/CMakeLists.txt.
May 17, 2025
9702c9d
Update links to the RFCs.
madler May 18, 2025
562b823
Fix indentation in gzread.c.
madler May 26, 2025
370ef1b
Return all available uncompressed data on error in gzread.c.
madler May 26, 2025
598130f
Update gz*.c copyright dates.
madler Dec 6, 2025
81cc0be
Support non-blocking devices in the gz* routines.
madler May 26, 2025
3516e02
CMake: Repair Windows action.
Nov 24, 2025
9cca278
CMake: Repair macOS action.
Nov 24, 2025
66bdcdb
Look for gcov in configure only if coverage was requested.
madler Dec 8, 2025
9aa11a7
Avoid mixed signedness compare in gzwrite.c.
madler Dec 8, 2025
570720b
zlib 1.3.1.2
madler Dec 8, 2025
ba829a4
Check for negative lengths in crc32_combine functions.
madler Dec 22, 2025
3509ab5
Copy only the initialized window contents in inflateCopy.
madler Dec 22, 2025
cab7352
Update the link for an snprintf/vsnprintf implementation in FAQ.
madler Dec 22, 2025
fd36638
Prevent the use of insecure functions without an explicit request.
madler Jan 3, 2026
916dc1a
Add compressBound_z and deflateBound_z functions for large values.
madler Jan 4, 2026
c267ef7
Use atomics to build inflate fixed tables once.
madler Jan 5, 2026
2b250b8
Fix links to Mark Nelson's zlib article, now hosted on zlib.net.
madler Dec 12, 2025
fee7c52
Avoid Visual C warning in gzread.c.
madler Dec 17, 2025
42ca9c2
Add definition of ZLIB_INSECURE to build tests with c89 and c94.
madler Jan 6, 2026
f816906
Add compiler options to standards in c-std.yml for ZLIB_INSECURE.
madler Jan 6, 2026
2896db6
Correct macro name for ZLIB_INSECURE in c-std.yml.
madler Jan 6, 2026
78832f5
Add --undefined option to ./configure for UBSan checker.
madler Jan 10, 2026
edebc8c
Correct #endif comment in trees.c.
madler Jan 11, 2026
8404590
Copy only the initialized deflate state in deflateCopy.
madler Jan 11, 2026
ecbaf03
Zero inflate state on allocation.
madler Jan 11, 2026
1a40058
Remove untgz from contrib.
madler Jan 11, 2026
4edb00d
Add _z versions of the compress and uncompress functions.
madler Jan 12, 2026
6598de3
Remove old subdirectory.
madler Jan 12, 2026
3a85de5
CMake: Move contrib options out of main file.
Dec 25, 2025
fa448d4
CMake: Set defaults for contrib/minizip from contrib.
Dec 28, 2025
b74a346
CMake: Added contrib/ada.
Dec 30, 2025
5ba29ae
CMake: Added contrib/blast.
Dec 30, 2025
175ff09
CMake: Clean out unneeded stuff.
Dec 30, 2025
fe28c02
CMake: Filter out optimisation flags for the ada binder.
Dec 30, 2025
6f0e6f1
CMake: Added contrib/gcc_gvmat64.
Dec 30, 2025
f7df8cc
CMake: Added contrib/infback9.
Dec 31, 2025
fb4bdb7
CMake: Unify the options.
Dec 31, 2025
4db1cd9
CMake: Added contrib/iostream3.
Dec 31, 2025
1956b5a
CMake: Moved everything to functions for consistency.
Dec 31, 2025
89889de
CMake: Removed bogus module-path.
Dec 31, 2025
fb0479a
CMake: Added contrib/puff.
Jan 1, 2026
a863197
CMake: Added contrib/testzlib.
Jan 1, 2026
53af7b0
CMake: Make the options available in cmake-gui.
Jan 3, 2026
39728a2
CMake: Add install and exports.
Jan 3, 2026
9444f86
CMake: Make it work with add_subdirectory.
Jan 3, 2026
c6d16d4
CMake: Name targets consistently.
Jan 3, 2026
dc35ccc
CMake: Name tests consistently.
Jan 3, 2026
16abbd2
CMake: Fix MSVC build.
Jan 3, 2026
883c24b
CMake: Add integration tests.
Jan 3, 2026
e62a3dd
CMake: Make final fixes for Windows.
Jan 4, 2026
edd8895
CMake: Add install-target for contrib/testzlib.
Jan 4, 2026
8e50fb0
Move new external names to correct location in zlib.map.
madler Jan 14, 2026
2209f63
Make z_once() local to avoid conditional external symbols.
madler Jan 18, 2026
ef16d92
Add workflow for OmniOS.
Dec 24, 2025
bd1bfbd
CMake: Fix compile for OmniOS.
Dec 24, 2025
6e8a381
Add workflow for OpenIndiana.
Dec 24, 2025
2ae28ce
Add workflow for NetBSD.
Dec 24, 2025
22f6fc1
Add workflow for OpenBSD.
Dec 25, 2025
6d61ddf
Add workflow for DragonflyBSD.
Dec 25, 2025
ac1be29
Use copyback: false to improve workflow actions efficiency.
Dec 25, 2025
25af8ab
Add workflow for Solaris.
Dec 25, 2025
46b1cd3
Sort jobs in others workflow.
Dec 25, 2025
70f2a6b
Add workflow for FreeBSD.
Dec 25, 2025
47f1ae8
Remove anding operations in others workflow.
Dec 25, 2025
c5c3b0b
Check multiple architectures in *BSD workflows.
Dec 25, 2025
dbc42c1
Add --output-on-failure to workflow tests.
Dec 25, 2025
45de8d7
Exclude coverage from FreeBSD workflow.
Dec 25, 2025
7b4ad8e
Remove OpenIndiana workflow until resolved.
Jan 15, 2026
4bbe0ca
Fix OpenBSD workflow.
Jan 24, 2026
c0ac3d7
Correct name of Solaris workflow.
Jan 24, 2026
3382ba4
Update packages in Solaris workflow.
Jan 24, 2026
07f2d42
Vectorize the CRC-32 calculation on the s390x.
iii-i Sep 10, 2025
a07427d
CMake: Correct zlib version number.
madler Jan 28, 2026
b63058b
Fix MinGW clang workflow to use clang.
Dec 24, 2025
b1f8d48
Test minizip in the MinGW and Cygwin workflows.
Dec 24, 2025
202ea98
Add ARM64 to Windows workflows.
Harishmcw Dec 16, 2025
8236296
Fix resource closures in test/minigzip.c.
MicroMilo Oct 22, 2025
2f752ce
Set bit 11 of the zip header flags in minizip if UTF-8.
madler Jan 28, 2026
74377e7
Remove inline keyword from minizip zip.c.
madler Jan 28, 2026
75133f8
Replace // with /* comments in minizip zip.c.
madler Jan 28, 2026
9a5c200
Update INDEX for OS/400.
tbeu Jan 2, 2017
29c3c79
Fix BNDSRC copy to QSYS.LIB for OS/400.
Chi-Iroh Oct 20, 2025
df6b46c
Fix service program path for OS/400.
Chi-Iroh Oct 20, 2025
1004dd6
Fix OS/400 include file.
Chi-Iroh Oct 20, 2025
405a419
Add full-free header for OS/400.
Chi-Iroh Oct 21, 2025
d8d3664
Give type RPGLE to include member ZLIB.INC in OS/400 build.
Chi-Iroh Oct 21, 2025
a2e02d4
Renamed OS/400 header with .rpgle extension.
Chi-Iroh Oct 21, 2025
d586324
Gives members a type for OS/400.
Chi-Iroh Oct 21, 2025
9007c04
Copy OS/400 free-form header to the source file.
Chi-Iroh Oct 21, 2025
8a6c8d4
Rename OS/400 free-form header.
Chi-Iroh Oct 21, 2025
6b50153
Remove outdated nintendods build.
madler Jan 28, 2026
55551fe
Remedy uninitialized variable warning in minizip.
Apr 15, 2024
605187f
Fix missing dependencies in Makefile.in.
Mar 29, 2019
0dcef97
Fix win32/Makefile.gcc to work with mingw32-make -r.
orgads Mar 20, 2020
d380a71
Add the architecture to the shared compile flags in configure.
nicolas-cellier-aka-nice Jan 4, 2021
9eadab4
Pass LDFLAGS to link tests in configure.
kraj Mar 9, 2022
88c1333
CMake: Use a normal components search for zlib.
Dec 24, 2025
d3e5c53
CMake: Add components tests for zlib.
Dec 24, 2025
3e96807
CMake: Use components in minizip.
Dec 24, 2025
8089c7d
CMake: Use a normal components search in minizip.
Dec 24, 2025
9765e96
Add workflows for shared/static only building.
Dec 24, 2025
9c77cc0
CMake: Clarify README-cmake.md.
Dec 24, 2025
c9170ec
CMake: Remove an empty line.
Jan 30, 2026
d48b805
CMake: Correct a comment.
Jan 30, 2026
c4d26ca
CMake: Use the correct options.
Jan 30, 2026
46e7092
CMake: Move the testers to the test directory.
Jan 30, 2026
f84a264
CMake: Make minizip buildable by itself.
Jan 30, 2026
bae5d29
Add workflows for the contrib contents.
Jan 30, 2026
315e406
Pre-install zlib for the contrib workflows.
invalid-email-address Jan 30, 2026
3089a0b
CMake: Fix the iostream3 install test.
invalid-email-address Jan 30, 2026
9f25df2
CMake: Fix the Ada standalone build.
invalid-email-address Jan 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
245 changes: 245 additions & 0 deletions .cmake-format.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,245 @@
_help_parse: Options affecting listfile parsing
parse:
_help_additional_commands:
- Specify structure for custom cmake functions
additional_commands:
foo:
flags:
- BAR
- BAZ
kwargs:
HEADERS: '*'
SOURCES: '*'
DEPENDS: '*'
_help_override_spec:
- Override configurations per-command where available
override_spec: {}
_help_vartags:
- Specify variable tags.
vartags: []
_help_proptags:
- Specify property tags.
proptags: []
_help_format: Options affecting formatting.
format:
_help_disable:
- Disable formatting entirely, making cmake-format a no-op
disable: false
_help_line_width:
- How wide to allow formatted cmake files
line_width: 80
_help_tab_size:
- How many spaces to tab for indent
tab_size: 4
_help_use_tabchars:
- If true, lines are indented using tab characters (utf-8
- 0x09) instead of <tab_size> space characters (utf-8 0x20).
- In cases where the layout would require a fractional tab
- character, the behavior of the fractional indentation is
- governed by <fractional_tab_policy>
use_tabchars: false
_help_fractional_tab_policy:
- If <use_tabchars> is True, then the value of this variable
- indicates how fractional indentions are handled during
- whitespace replacement. If set to 'use-space', fractional
- indentation is left as spaces (utf-8 0x20). If set to
- '`round-up` fractional indentation is replaced with a single'
- tab character (utf-8 0x09) effectively shifting the column
- to the next tabstop
fractional_tab_policy: use-space
_help_max_subgroups_hwrap:
- If an argument group contains more than this many sub-groups
- (parg or kwarg groups) then force it to a vertical layout.
max_subgroups_hwrap: 2
_help_max_pargs_hwrap:
- If a positional argument group contains more than this many
- arguments, then force it to a vertical layout.
max_pargs_hwrap: 6
_help_max_rows_cmdline:
- If a cmdline positional group consumes more than this many
- lines without nesting, then invalidate the layout (and nest)
max_rows_cmdline: 2
_help_separate_ctrl_name_with_space:
- If true, separate flow control names from their parentheses
- with a space
separate_ctrl_name_with_space: false
_help_separate_fn_name_with_space:
- If true, separate function names from parentheses with a
- space
separate_fn_name_with_space: false
_help_dangle_parens:
- If a statement is wrapped to more than one line, than dangle
- the closing parenthesis on its own line.
dangle_parens: false
_help_dangle_align:
- If the trailing parenthesis must be 'dangled' on its on
- 'line, then align it to this reference: `prefix`: the start'
- 'of the statement, `prefix-indent`: the start of the'
- 'statement, plus one indentation level, `child`: align to'
- the column of the arguments
dangle_align: prefix
_help_min_prefix_chars:
- If the statement spelling length (including space and
- parenthesis) is smaller than this amount, then force reject
- nested layouts.
min_prefix_chars: 4
_help_max_prefix_chars:
- If the statement spelling length (including space and
- parenthesis) is larger than the tab width by more than this
- amount, then force reject un-nested layouts.
max_prefix_chars: 10
_help_max_lines_hwrap:
- If a candidate layout is wrapped horizontally but it exceeds
- this many lines, then reject the layout.
max_lines_hwrap: 2
_help_line_ending:
- What style line endings to use in the output.
line_ending: unix
_help_command_case:
- Format command names consistently as 'lower' or 'upper' case
command_case: canonical
_help_keyword_case:
- Format keywords consistently as 'lower' or 'upper' case
keyword_case: unchanged
_help_always_wrap:
- A list of command names which should always be wrapped
always_wrap: []
_help_enable_sort:
- If true, the argument lists which are known to be sortable
- will be sorted lexicographicall
enable_sort: true
_help_autosort:
- If true, the parsers may infer whether or not an argument
- list is sortable (without annotation).
autosort: false
_help_require_valid_layout:
- By default, if cmake-format cannot successfully fit
- everything into the desired linewidth it will apply the
- last, most aggressive attempt that it made. If this flag is
- True, however, cmake-format will print error, exit with non-
- zero status code, and write-out nothing
require_valid_layout: false
_help_layout_passes:
- A dictionary mapping layout nodes to a list of wrap
- decisions. See the documentation for more information.
layout_passes: {}
_help_markup: Options affecting comment reflow and formatting.
markup:
_help_bullet_char:
- What character to use for bulleted lists
bullet_char: '*'
_help_enum_char:
- What character to use as punctuation after numerals in an
- enumerated list
enum_char: .
_help_first_comment_is_literal:
- If comment markup is enabled, don't reflow the first comment
- block in each listfile. Use this to preserve formatting of
- your copyright/license statements.
first_comment_is_literal: false
_help_literal_comment_pattern:
- If comment markup is enabled, don't reflow any comment block
- which matches this (regex) pattern. Default is `None`
- (disabled).
literal_comment_pattern: null
_help_fence_pattern:
- Regular expression to match preformat fences in comments
- default= ``r'^\s*([`~]{3}[`~]*)(.*)$'``
fence_pattern: ^\s*([`~]{3}[`~]*)(.*)$
_help_ruler_pattern:
- Regular expression to match rulers in comments default=
- '``r''^\s*[^\w\s]{3}.*[^\w\s]{3}$''``'
ruler_pattern: ^\s*[^\w\s]{3}.*[^\w\s]{3}$
_help_explicit_trailing_pattern:
- If a comment line matches starts with this pattern then it
- is explicitly a trailing comment for the preceding argument.
- Default is '#<'
explicit_trailing_pattern: '#<'
_help_hashruler_min_length:
- If a comment line starts with at least this many consecutive
- hash characters, then don't lstrip() them off. This allows
- for lazy hash rulers where the first hash char is not
- separated by space
hashruler_min_length: 10
_help_canonicalize_hashrulers:
- If true, then insert a space between the first hash char and
- remaining hash chars in a hash ruler, and normalize its
- length to fill the column
canonicalize_hashrulers: true
_help_enable_markup:
- enable comment markup parsing and reflow
enable_markup: true
_help_lint: Options affecting the linter
lint:
_help_disabled_codes:
- a list of lint codes to disable
disabled_codes: []
_help_function_pattern:
- regular expression pattern describing valid function names
function_pattern: '[0-9a-z_]+'
_help_macro_pattern:
- regular expression pattern describing valid macro names
macro_pattern: '[0-9A-Z_]+'
_help_global_var_pattern:
- regular expression pattern describing valid names for
- variables with global (cache) scope
global_var_pattern: '[A-Z][0-9A-Z_]+'
_help_internal_var_pattern:
- regular expression pattern describing valid names for
- variables with global scope (but internal semantic)
internal_var_pattern: _[A-Z][0-9A-Z_]+
_help_local_var_pattern:
- regular expression pattern describing valid names for
- variables with local scope
local_var_pattern: '[a-z][a-z0-9_]+'
_help_private_var_pattern:
- regular expression pattern describing valid names for
- privatedirectory variables
private_var_pattern: _[0-9a-z_]+
_help_public_var_pattern:
- regular expression pattern describing valid names for public
- directory variables
public_var_pattern: '[A-Z][0-9A-Z_]+'
_help_argument_var_pattern:
- regular expression pattern describing valid names for
- function/macro arguments and loop variables.
argument_var_pattern: '[a-z][a-z0-9_]+'
_help_keyword_pattern:
- regular expression pattern describing valid names for
- keywords used in functions or macros
keyword_pattern: '[A-Z][0-9A-Z_]+'
_help_max_conditionals_custom_parser:
- In the heuristic for C0201, how many conditionals to match
- within a loop in before considering the loop a parser.
max_conditionals_custom_parser: 2
_help_min_statement_spacing:
- Require at least this many newlines between statements
min_statement_spacing: 1
_help_max_statement_spacing:
- Require no more than this many newlines between statements
max_statement_spacing: 2
max_returns: 6
max_branches: 12
max_arguments: 5
max_localvars: 15
max_statements: 50
_help_encode: Options affecting file encoding
encode:
_help_emit_byteorder_mark:
- If true, emit the unicode byte-order mark (BOM) at the start
- of the file
emit_byteorder_mark: false
_help_input_encoding:
- Specify the encoding of the input file. Defaults to utf-8
input_encoding: utf-8
_help_output_encoding:
- Specify the encoding of the output file. Defaults to utf-8.
- Note that cmake only claims to support utf-8 so be careful
- when using anything else
output_encoding: utf-8
_help_misc: Miscellaneous configurations options.
misc:
_help_per_command:
- A dictionary containing any per-command configuration
- overrides. Currently only `command_case` is supported.
per_command: {}
Loading