Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
659 commits
Select commit Hold shift + click to select a range
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
060c9e7
Remove all uses of the obsolete keyword "register".
nijtmans Feb 3, 2026
cd55be2
CMake: Add tests for minizip components.
Dec 24, 2025
9b33778
Fix typo in contribs workflow.
madler Feb 8, 2026
eb4022e
Make some down conversions explicit in the gz routines.
madler Feb 8, 2026
7eab3fd
Clean up type usage in crc32.c.
madler Feb 8, 2026
61f3438
Use _WIN32 instead of WIN32 in pufftest.c.
madler Feb 8, 2026
f7d8be0
Add a test to configure to check for a working compiler.
madler Feb 8, 2026
8ad678e
Make sign change in compress.c explicit.
madler Feb 8, 2026
8371b53
Allow --const to be used in configure without --warn.
madler Feb 8, 2026
fd2fe58
Add more compiler warnings for ./configure --warn --warn.
madler Feb 8, 2026
81c41dd
Fix the usage of types in deflate.c for when an int is 16 bits.
madler Feb 9, 2026
029a4a4
Remove carriage returns from contrib/testzlib files.
madler Feb 10, 2026
ab8d74f
Bump the .github workflows action versions.
xavier2k6 Jan 29, 2026
fc7593c
Avoid missing-extern warnings.
madler Feb 11, 2026
5a153ad
Correct printf types in test/example.c.
madler Feb 11, 2026
fb8dd62
Clean up the use of switch cases.
madler Feb 11, 2026
d37e27e
Reduce warnings in contrib/minizip.
madler Feb 11, 2026
5c47755
Check for invalid NULL pointer inputs to zlib operations.
BenchBeach Aug 25, 2025
cf14996
Add -static-libgcc to mingw build.
nijtmans Feb 5, 2026
249e753
Specify the zlib license in pkg-config files.
iwamatsu May 1, 2025
4df5acd
Don't use *64 functions on Android before API level 24.
kambala-decapitator Nov 23, 2024
3dc79aa
Fix AIX compile options for 64 bits.
2128506 Oct 22, 2024
43386cf
Add --mandir to ./configure to specify manual directory.
mtl1979 Sep 28, 2024
af0aa9b
Catch a file open error in contrib/minizip/mztools.c.
DimitriPapadopoulos Jun 9, 2024
3f5d21e
Use underscores for Windows POSIX names in zpipe.c.
madler Feb 12, 2026
2570416
Update URLs to use https.
madler Feb 12, 2026
e5c1cd1
Remove extraneous spaces in contrib/minizip/miniunz.c.
DimitriPapadopoulos Aug 6, 2023
e0aef12
Add LICENSE.Info-Zip to contrib/minizip.
georgthegreat Aug 30, 2023
a793abe
Add repository README to the nuget package.
AraHaan May 29, 2024
00aa188
Permit ./configure parameters using '=' to contain '='.
Sep 2, 2023
aa82531
Permit all ./configure parameters to use '=' or ' '.
madler Feb 13, 2026
09f8d2b
Add --disable-shared to --static ./configure option.
madler Feb 13, 2026
c271172
Return error codes in minizip miniunz.c and minuzip.c.
anjiahao1 Jan 26, 2022
3c173d5
Match signedness in format specifiers.
AZero13 May 2, 2023
9ac9b6b
Fix the minizip Makefile to use the default variables and rules.
rossburton Jul 18, 2022
f4f3449
Clean up debug sign conversions in deflate.c and trees.c.
madler Feb 14, 2026
965fbb5
CMake: Remove "compatible" zlib and minizip installations.
Vollstrecker Feb 14, 2026
0b3932c
CMake: Add build for zlib1.dll with zlib and minizip.
Vollstrecker Feb 14, 2026
fa5ea47
Remove vstudio projects in lieu of cmake-generated projects.
madler Feb 14, 2026
8016572
Adjust cmake defaults.
madler Feb 16, 2026
725b6ee
Fix --insecure option for shared libraries.
madler Feb 17, 2026
731ce0c
Remove GNU-only constructs from Makefile.in.
madler Feb 17, 2026
d7bc8ca
Define NULL in inftrees.c if needed.
madler Feb 17, 2026
33e7106
Align the backup zmem* functions with their library counterparts.
madler Feb 17, 2026
1ebcfc9
Replace strcpy() with memcpy() in contrib/minizip.
madler Feb 17, 2026
40d0519
Factor out a set_uniq() function to set the seed with noise.
madler Feb 17, 2026
f8b0f9b
Use command instead of which in ./configure.
madler Feb 17, 2026
6d95c6f
Fix the minizip Makefile to work with both BSD and GNU make.
madler Feb 17, 2026
3b4b11d
Remove make cover from the configure workflows.
madler Feb 17, 2026
591ef31
Avoid using the value of an undefined macro in crc32.c.
madler Feb 17, 2026
b739f6f
Make type changes for solo code explicit in test/minigzip.c.
madler Feb 17, 2026
890953a
Remove carriage returns from win32/zlib.def.
madler Feb 17, 2026
9e35567
Version 1.3.2
madler Feb 17, 2026
da607da
zlib 1.3.2
madler Feb 17, 2026
dd625a9
Change version number on develop branch to 1.3.2.1.
madler Feb 17, 2026
cb14dc9
Add dependency to ints.h in minizip Makefile.am.
chenrui333 Feb 17, 2026
846a66a
Remove redundant check in zmemzero().
madler Feb 17, 2026
09a1572
Fix inflateBack() bug that would fail to detect a too far back.
madler Feb 22, 2026
63a623c
Correct ENOUGH_LENS and ENOUGH_DIST for PKZIP_BUG_WORKAROUND.
madler Mar 9, 2026
60ab906
Add setting of VGFMAFLAG to configure for s390x.
rwolke Feb 18, 2026
2d20523
Remove C99 intermingled variable declarations from minizip.
jodogne Feb 21, 2026
c68d46a
Make skipset functions static (not external) in minizip.
madler Mar 26, 2026
74030f2
Clean up skipset.h comment formatting.
madler Mar 26, 2026
bb65dcb
CMake: Define exec_prefix to be the same as prefix in .pc file.
marcin-serwin Feb 18, 2026
ed659f3
CMake: Use prefix for includedir in .pc file.
marcin-serwin Feb 18, 2026
91292b1
CMake: Emit correct variables for absolute install directories.
marcin-serwin Feb 18, 2026
7cdaaa0
CMake: Don't add coverage tests if gcov is not found.
marcin-serwin Feb 18, 2026
f9dd600
Clean up comment formatting in minizip's zip.c and unzip.c.
madler Mar 27, 2026
51b2667
Correct errno symbol in zlib.h comment.
jonathangray Mar 23, 2026
02adb14
CMake: Check for loaded config.
Feb 21, 2026
a18d683
CMake: Reduce the noise in ZLIBConfig.cmake and minizipConfig.cmake.
Feb 21, 2026
88b597d
CMake: Check for loaded config in minizip.
Feb 21, 2026
d767818
CMake: Add found vars for components.
Feb 21, 2026
7d697b0
CMake: Clarify README-cmake.md about usage of components.
Feb 21, 2026
faaaab2
CMake: Search for minizip the right way.
Feb 21, 2026
bc406b9
Use scp for vmactions which is hopefully more robust.
Feb 21, 2026
b55070a
CMake: Fix naming of libs on MSVC.
Feb 22, 2026
494708c
CMake: Fix naming on cygwin.
Feb 22, 2026
1c2519c
CMake: Update README-cmake.md.
Vollstrecker Feb 23, 2026
0d10bbd
CMake: Avoid failure if only static or shared is found.
Feb 24, 2026
43129bf
CMake: Create all package targets.
Feb 24, 2026
e171c51
CMake: Fix gvmat warning about unused linker-inputs.
Feb 25, 2026
4072767
CMake: Fix assembler detection.
Feb 25, 2026
5c0dfd2
CMake: Fix zlib1-dll when building from within zlib.
Feb 25, 2026
021a130
CMake: Give clear option-names for zlib1_dll.
Feb 25, 2026
29e991a
Add Windows to contrib tests and test contribs standalone.
Feb 25, 2026
caa5163
CMake: Bring all configs to the same level.
Feb 25, 2026
ecea898
CMake: Add indicator to check if minizip was compiled with bzip2.
Feb 25, 2026
27703b2
CMake: Fix zlib1.dll typo.
Feb 25, 2026
dd0d778
CMake: Unify target names for blast.
Feb 25, 2026
4a181d8
CMake: Export symbols from iostream3.
Feb 25, 2026
e2a957b
CMake: Fix testzlib standalone build.
Feb 25, 2026
9c19e68
CMake: Move CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS to the right place.
Feb 25, 2026
2d407ac
CMake: Remove extra parenthesis.
Feb 25, 2026
6af5136
CMake: Fix conditional around wrong statement.
Feb 25, 2026
aa9e122
CMake: Export puff symbols.
Feb 25, 2026
7a675db
CMake: Move redundant variables higher in level.
Feb 26, 2026
4b4588d
CMake: Use targets for iostream.
Feb 26, 2026
8dab7e8
CMake: Add missing suffix for iostream.
Feb 26, 2026
dda8535
CMake: Allow minizip to build on 32-bit.
Feb 26, 2026
b49dce6
CMake: Enable tests for standalone puff.
Feb 26, 2026
8849c7c
CMake: Add debug-postfix to zlib1-dll.
Feb 26, 2026
d287163
CMake: Add path handling for standalone and chainbuild zlib1-dll.
Feb 26, 2026
74c677c
CMake: Add proper reconfiguration for standalone zlib1.dll.
Feb 26, 2026
0c147a7
CMake: Add alias for chainbuilding zlib1-dll.
Feb 26, 2026
337803a
CMake: Add installation and export to zlib1.dll and zlibwapi.dll.
Feb 26, 2026
2d2b187
CMake: Add tests for zlib1.dll.
Feb 26, 2026
e1a1c15
CMake: Set Ada build defaults to zlib defaults.
Feb 26, 2026
59c7b00
CMake: Set blast build defaults to zlib defaults.
Feb 26, 2026
6bda445
CMake: Set iostream build defaults to zlib defaults.
Feb 26, 2026
321c6fb
CMake: Set puff build defaults to zlib defaults.
Feb 26, 2026
d567128
CMake: Rename the targets to the same schema.
Feb 26, 2026
81b3af3
Avoid minizip test in c-std.
Feb 26, 2026
b2ed197
CMake: Consolidate build tests in the test directory.
Feb 27, 2026
582b8ef
CMake: Remove unnecessary make_directory calls.
Feb 27, 2026
ace35f6
CMake: Break long lines for readability.
Feb 27, 2026
90d5bd8
CMake: Prefix targets and tests with zlib_ when not standalone.
Feb 27, 2026
f8444a9
CMake: Correct the name of blast_testStatic.
Feb 27, 2026
213ea4d
CMake: Correct the iostream3_add_subdirectory test dependency.
Feb 27, 2026
7ccaebc
CMake: Fix minizip test-dep-graph.
Feb 28, 2026
6a0e00f
CMake: Fix puff-test-dep-graph.
Feb 28, 2026
979a56e
CMake: Fix zlib test-dep-graph.
Feb 28, 2026
6de84ae
CMake: Fix Ada test.dep-graph.
Feb 28, 2026
4fd956f
CMake: Avoid resource conflict in blast tests.
Feb 28, 2026
1110699
CMake: Enable Ada to compile in different directories.
Feb 28, 2026
bcf22ee
CMake: Move Ada tests to test directory.
Feb 28, 2026
c95cdea
CMake: Move blast tests into test directory.
Feb 28, 2026
2da4816
CMake: Move iostream3 tests into test directory.
Feb 28, 2026
6d3b776
CMake: Move minizip tests into test directory.
Feb 28, 2026
13c70da
CMake: Fix Ada configuration.
Feb 28, 2026
3e8969d
CMake: Avoid test in tests.
Feb 28, 2026
160de9b
CMake: Fix DLL details when building with cmake.
Feb 28, 2026
6672d10
CMake: Fix broken link_helper.
Vollstrecker Feb 28, 2026
8be6629
CMake: Avoid masking a slash in REPLACE.
Feb 28, 2026
629d8cb
Remove redundant cmake runs in testing.
Feb 28, 2026
25e021a
CMake: Avoid running integration tests when not installing.
Mar 18, 2026
d491f4a
CMake: Fix tests with pre-3.24 cmake updates.
Mar 18, 2026
bb0c497
CMake: Avoid coverage testing when cross-compiling.
Mar 18, 2026
e3dc0a8
Avoid undefined behavior in gzwrite.c.
madler Apr 5, 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