move some of the Validators to an ExtraValidators file (#1192)

Rework some of the validator locations, add documentation, and fix some
lingering issues with validators.
The extra will will enable additions of some new validators and reduce
compile times for those that are not needed.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Philip Top
2025-09-01 05:13:21 -07:00
committed by GitHub
parent 1ab8646760
commit 8c77664bd0
37 changed files with 1823 additions and 1229 deletions

View File

@@ -2,7 +2,7 @@ cc_library(
name = "cli11",
srcs = glob(["src/**/*.cpp"]),
hdrs = glob(["include/**/*.hpp"]),
local_defines = ["CLI11_COMPILE"],
local_defines = ["CLI11_COMPILE", "CLI11_ENABLE_EXTRA_VALIDATORS=1"],
strip_include_prefix = "/include",
visibility = ["//visibility:public"],
)