Skip to content

[pull] develop from madler:develop #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 394 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
394 commits
Select commit Hold shift + click to select a range
f5ae600
Revert flipping of load flags in Makefile.in for z/OS.
madler Aug 18, 2023
e13289e
Fix typo in preceding reversion commit.
madler Aug 18, 2023
25bbd7f
Avoid uninitialized and unused warnings in contrib/minizip.
madler Aug 18, 2023
899ffef
Use original make and options when Makefile runs make.
madler Aug 18, 2023
09155ea
zlib 1.3
madler Aug 18, 2023
3a98b57
Change version number on develop branch to 1.3.0.1.
madler Aug 18, 2023
5dc7681
Fix version numbering for Darwin shared library.
madler Aug 18, 2023
0f68a0d
Limit the length of Darwin shared library version number.
madler Aug 18, 2023
4c5a81c
Remove carriage returns from contrib/vstudio/readme.txt.
madler Aug 19, 2023
d7de597
Add VS2022 project files.
AraHaan Oct 24, 2022
4a47c1b
Add project and solution files for building a nuget package.
AraHaan Oct 25, 2022
726e189
Remove Windows ARM and ARM64 builds from cmake workflow.
madler Aug 19, 2023
73331a6
Reject overflows of zip header fields in minizip.
zmodem Aug 18, 2023
60bfe64
Rename contrib/vstudio/vc143 to vc17.
madler Aug 19, 2023
7192d69
Update vc directory in contrib/nuget.
madler Aug 20, 2023
8988e03
Update version numbers and year in contrib/vstudio/vc17.
madler Aug 20, 2023
79a0e44
Update version and date in contrib/nuget.
madler Aug 20, 2023
88e50f1
Update miniunz version.
tbeu Nov 15, 2016
5af7cef
Fix bug in inflateSync() for data held in bit buffer.
madler Aug 24, 2023
bd9c329
Make internal functions static in the test code.
delphij Sep 3, 2023
ac8f12c
Add LIT_MEM define to use more memory for a small deflate speedup.
madler Sep 19, 2023
15c45ad
Fix decision on the emission of Zip64 end records in minizip.
madler Nov 7, 2023
643e17b
Correct repeated words in source file comments and a readme.
ivanov Nov 15, 2023
431a9b6
Add bounds checking to ERR_MSG() macro, used by zError().
madler Dec 7, 2023
4bd9a71
Remove fdopen #defines in zutil.h.
madler Dec 13, 2023
ee474ff
Fix pending buffer overflow assert with LIT_MEM allocation.
zmodem Dec 15, 2023
60c3198
Fix the copy of pending_buf in deflateCopy() for the LIT_MEM case.
zmodem Dec 20, 2023
36e369e
Note that the len2 argument of crc_combine*() must be non-negative.
madler Jan 11, 2024
762cf49
Refer to correct function in contrib/minizip/unzip.c comment.
WilliamLeara Dec 11, 2023
190168c
Correct case of MSDOS in contrib/minizip/miniunz.c.
WilliamLeara Dec 11, 2023
16799d0
Fix "the the" in examples/gzlog.c.
WilliamLeara Dec 11, 2023
01155cc
Fix random typos over several source and text files.
THE-Spellchecker Dec 2, 2023
44dc43a
Add a CMake option to link the C runtime statically.
tbeu Nov 19, 2023
14a5f8f
Neutralize zip file traversal attacks in miniunz.
mswilson Jan 17, 2024
6201f89
Add cmake option to control the build of the example executables.
Feb 10, 2017
01253ec
Make the existence of gz_intmax() unconditional.
speedym Oct 9, 2023
fe41d18
Correct typos in source code.
DimitriPapadopoulos Aug 6, 2023
2526346
Remove mentions of an official zlib DLL distribution.
madler Jan 18, 2024
ade6825
Fix cmake build on AIX.
gastush Sep 30, 2022
3f635df
Remove unused Z_ARG macro.
madler Jan 18, 2024
7b632b4
Revert "Add a CMake option to link the C runtime statically."
madler Jan 19, 2024
7af6320
Fix a bug in ZLIB_DEBUG compiles in check_match().
madler Jan 19, 2024
84f0baf
Remove carriage returns from zlib.map.
madler Jan 19, 2024
9404df5
Use updated zconf.h when building out of directory with configure.
dankegel May 22, 2020
88ec246
Remove -w compile option in configure test.
madler Jan 21, 2024
c06dfec
Use Makefile compiler for minizip-test target.
madler Jan 21, 2024
2e3d86c
Add target include directories to CMakeLists.txt.
Mar 26, 2018
1a8db63
Move the load flags before the object files in Makefile tests.
madler Jan 22, 2024
51b7f2a
zlib 1.3.1
madler Jan 22, 2024
9f0f2d4
Change version number on develop branch to 1.3.1.1.
madler Jan 22, 2024
4de0b05
Improve portability to RISC OS.
ccawley2011 Oct 13, 2022
da59377
Permit compiling contrib/minizip/unzip.c with decryption.
madler Jan 23, 2024
d4eaa1d
Avoid unterminated file name in contrib/minizip/miniunz.c.
madler Jan 23, 2024
df3b265
Add option to CMakeLists.txt to disable renaming of zconf.h.
Togtja Aug 24, 2020
8a76f02
Avoid implicit conversion warnings in deflate.c and trees.c.
GrabYourPitchforks Aug 30, 2023
b289a50
Ignore unknown options in configure.
madler Jan 23, 2024
f56ad0a
Note termination of returned strings in contrib/minizip/unzip.h.
madler Jan 23, 2024
04ca300
Enable build of shared library on AIX.
Lex-2008 Oct 26, 2022
31d3dd4
Update copyright years in LICENSE file.
madler Jan 24, 2024
b144849
Fix version numbers in vstudio definition files.
madler Jan 28, 2024
f1f503d
Fix cmake build directory interference issue.
madler Jan 29, 2024
be4db0a
Set returned index to NULL on an index build error in zran.c.
madler Feb 2, 2024
bb054d9
Stop decoding in zran.c once request is satisfied.
madler Feb 3, 2024
6378d33
Provide a reusable inflate engine in the index in example/zran.c.
madler Feb 4, 2024
037bca6
Allocate the dictionaries in examples/zran.c.
madler Feb 4, 2024
abd3d1a
Update zran version.
madler Feb 3, 2024
4b98fd3
Enable fileno() for POSIX system in minigzip.c.
pmqs Feb 4, 2024
1382e66
Use _POSIX_C_SOURCE in gzguts.h, instead of _POSIX_SOURCE.
madler Feb 6, 2024
915a3d5
Avoid use of snprintf() in test/minigzip.c.
madler Feb 6, 2024
e342bb3
Assume no snprintf() or vsnprintf() if C89/90 in gzguts.h.
madler Feb 6, 2024
96d3e9e
Expand on the deflate strategy parameter in zlib.h.
madler Feb 7, 2024
81e7c38
Correct printf formats in test/infcover.c to %zu.
madler Feb 7, 2024
504403f
Fix broken links.
justindhillon Feb 7, 2024
985a62d
Address Microsoft deprecation warnings.
madler Feb 9, 2024
25740f4
Include share.h on Windows for _SH_DENYNO.
madler Feb 9, 2024
7615608
Update github actions versions.
madler Feb 9, 2024
3c13497
One more github actions version update.
madler Feb 9, 2024
7a7202d
Correct a variable type in deflate.c.
madler Feb 10, 2024
1bff6f0
Avoid signedness change warning in test/minigzip.c.
madler Feb 10, 2024
ceac32f
Keep lines short in gzread.c.
madler Feb 10, 2024
fd5fe8b
Further address Microsoft deprecation warnings.
madler Feb 10, 2024
d9243a0
Add warnings and error on warning to configure and cmake tests.
pmqs Feb 10, 2024
0e95839
Add github workflow to build with all available C standards.
pmqs Feb 5, 2024
c983609
Include unistd.h on DJGPP.
madler Feb 11, 2024
0413463
Use 64-bit offsets in DJGPP.
madler Feb 11, 2024
5c42a23
Correct argument types for 64-bit combine functions.
madler Feb 11, 2024
35175f2
Remove conversion warning from msdos/Makefile.dj2.
madler Feb 12, 2024
6544c3e
Use lseek under WinCE.
madler Feb 13, 2024
72d6aa2
Reduce Windows header inclusion to speed up compilation.
madler Feb 29, 2024
a8c321b
Make deflateBound() more conservative and handle Z_STREAM_END.
madler Mar 1, 2024
54e205f
Permit changing minizip Makefile optimization with CFLAGS.
madler Mar 9, 2024
4a5e3e7
Add zipAlreadyThere() to minizip zip.c to help avoid duplicates.
madler Mar 10, 2024
f60ce91
Improve random number seeding in skipset.h.
madler Mar 10, 2024
99b2294
Avoid signed shift in minizip zip.c.
madler Mar 12, 2024
9f418e1
Update old comment in inflate.h.
madler Mar 16, 2024
f02ea29
Improve detection of UNIX-style systems in minizip.
miller-alex Mar 11, 2024
90c677b
Use long long offsets for MinGW.
madler Mar 23, 2024
d201f04
Avoid conversion warning on 32-bit architectures in minizip.
madler Mar 23, 2024
0f51fb4
Avert minizip warnings for MSVC.
madler Mar 28, 2024
4f8a17e
Add -fPIC to compiler options for static library build on Android.
xengine-qyt Nov 30, 2023
c5e87dc
Make z_off_t 64 bits by default.
madler Mar 31, 2024
2ba25b2
Use z_const for setting msg to literal strings.
Apr 1, 2024
1b70083
Replace autotools macro AC_HELP_STRING with AS_HELP_STRING.
matlo607 Apr 29, 2024
0f3b7b9
Correct typo in zlib.h comment.
madler May 17, 2024
7e6f078
Remedy conflict between libzip and minizip zip.h.
madler Jun 4, 2024
534864b
Add build folder to .gitignore.
ramshankerji Jun 28, 2024
e011d8c
Add deflateUsed() function to get the used bits in the last byte.
madler Jul 2, 2024
884e0c0
Correct used bits from deflateUsed() for deflate_stored() case.
madler Jul 5, 2024
3adaa09
One more correction for deflateUsed() bits in stored case.
madler Jul 6, 2024
ceadaf2
Fix test/infcover.c function prototype when ZLIB_CONST defined.
madler Jul 11, 2024
3f44e55
Add required gzguts.h dependencies in Makefile.in.
Meiye-lj Jul 29, 2024
164b8e3
Avoid use of uintmax_t in enough.c.
madler Jul 29, 2024
be24a8f
Avoid use of stdint.h in contrib/minizip.
madler Jul 29, 2024
4cacc35
Add header file dependencies to contrib/minizip/Makefile.
madler Jul 29, 2024
545f194
Add old gcc ULONG_LONG_MAX macro to find a 64-bit type in zutil.h.
madler Jul 31, 2024
fff132f
Avoid the use of a reserved macro name in contrib/minizip/ioapi.h.
madler Aug 1, 2024
2968a49
Remove unneeded dependency on limits.h in examples/zran.c.
madler Aug 3, 2024
f7d01aa
Avoid out-of-bounds pointer arithmetic in inflateCopy().
madler Aug 27, 2024
d476828
Repair github workflows for their updated macOS runner gcc name.
madler Sep 1, 2024
6419111
Add Haiku to configure for proper LDSHARED settings.
OscarL Oct 7, 2024
6d3a66a
Avoid attempting to redefine z_const in zconf.h.
AlexisWilke Oct 13, 2024
ef24c4c
Reject invalid MAX_WBITS values at compile time.
madler Nov 9, 2024
71045ae
Fix indent in infback.c.
madler Dec 31, 2024
2359cd3
Add Bazel targets.
JoshVarga Jan 20, 2025
b3907c2
CMake: Add options for shared and static build.
Nov 30, 2024
ee00230
CMake: Switch to GNUInstallDirs.
Nov 30, 2024
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
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