Files
Niels Lohmann 734fd305a1
Code scanning - action / CodeQL-Build (push) Canceled after 0s
flawfinder / Flawfinder (push) Canceled after 0s
macOS / macos-14 (15.0.1) (push) Canceled after 0s
macOS / macos-14 (15.1) (push) Canceled after 0s
macOS / macos-14 (15.2) (push) Canceled after 0s
macOS / macos-14 (15.3) (push) Canceled after 0s
macOS / macos-14 (15.4) (push) Canceled after 0s
macOS / macos-15 (16.0) (push) Canceled after 0s
macOS / macos-15 (16.1) (push) Canceled after 0s
macOS / macos-15 (16.2) (push) Canceled after 0s
macOS / macos-15 (16.3) (push) Canceled after 0s
macOS / macos-15 (16.4) (push) Canceled after 0s
macOS / macos-15 (26.0.1) (push) Canceled after 0s
macOS / xcode_standards (11) (push) Canceled after 0s
macOS / xcode_standards (14) (push) Canceled after 0s
macOS / xcode_standards (17) (push) Canceled after 0s
macOS / xcode_standards (20) (push) Canceled after 0s
macOS / xcode_standards (23) (push) Canceled after 0s
macOS / xcode_standards (26) (push) Canceled after 0s
Publish documentation / publish_documentation (push) Canceled after 0s
Scorecard supply-chain security / Scorecard analysis (push) Canceled after 0s
Semgrep / Scan (push) Canceled after 0s
Ubuntu / ci_test_gcc (push) Canceled after 0s
Ubuntu / ci_infer (push) Canceled after 0s
Ubuntu / ci_static_analysis_ubuntu (ci_cppcheck) (push) Canceled after 0s
Ubuntu / ci_static_analysis_ubuntu (ci_cpplint) (push) Canceled after 0s
Ubuntu / ci_static_analysis_ubuntu (ci_non_git_tests) (push) Canceled after 0s
Ubuntu / ci_static_analysis_ubuntu (ci_offline_testdata) (push) Canceled after 0s
Ubuntu / ci_static_analysis_ubuntu (ci_reproducible_tests) (push) Canceled after 0s
Ubuntu / ci_static_analysis_ubuntu (ci_reuse_compliance) (push) Canceled after 0s
Ubuntu / ci_static_analysis_ubuntu (ci_test_amalgamation) (push) Canceled after 0s
Ubuntu / ci_static_analysis_ubuntu (ci_test_single_header) (push) Canceled after 0s
Ubuntu / ci_static_analysis_ubuntu (ci_test_valgrind) (push) Canceled after 0s
Ubuntu / ci_static_analysis_clang (ci_clang_analyze) (push) Canceled after 0s
Ubuntu / ci_static_analysis_clang (ci_clang_tidy) (push) Canceled after 0s
Ubuntu / ci_static_analysis_clang (ci_single_binaries) (push) Canceled after 0s
Ubuntu / ci_static_analysis_clang (ci_test_clang) (push) Canceled after 0s
Ubuntu / ci_static_analysis_clang (ci_test_clang_sanitizer) (push) Canceled after 0s
Ubuntu / ci_cmake_options (ci_cmake_flags) (push) Canceled after 0s
Ubuntu / ci_cmake_options (ci_test_diagnostic_positions) (push) Canceled after 0s
Ubuntu / ci_cmake_options (ci_test_diagnostics) (push) Canceled after 0s
Ubuntu / ci_cmake_options (ci_test_legacycomparison) (push) Canceled after 0s
Ubuntu / ci_cmake_options (ci_test_noexceptions) (push) Canceled after 0s
Ubuntu / ci_cmake_options (ci_test_noglobaludls) (push) Canceled after 0s
Ubuntu / ci_cmake_options (ci_test_noimplicitconversions) (push) Canceled after 0s
Ubuntu / ci_test_coverage (push) Canceled after 0s
Ubuntu / ci_test_compilers_gcc_old (4.8) (push) Canceled after 0s
Ubuntu / ci_test_compilers_gcc_old (4.9) (push) Canceled after 0s
Ubuntu / ci_test_compilers_gcc_old (5) (push) Canceled after 0s
Ubuntu / ci_test_compilers_gcc_old (6) (push) Canceled after 0s
Ubuntu / ci_test_compilers_gcc (10) (push) Canceled after 0s
Ubuntu / ci_test_compilers_gcc (11) (push) Canceled after 0s
Ubuntu / ci_test_compilers_gcc (12) (push) Canceled after 0s
Ubuntu / ci_test_compilers_gcc (13) (push) Canceled after 0s
Ubuntu / ci_test_compilers_gcc (14) (push) Canceled after 0s
Ubuntu / ci_test_compilers_gcc (15) (push) Canceled after 0s
Ubuntu / ci_test_compilers_gcc (7) (push) Canceled after 0s
Ubuntu / ci_test_compilers_gcc (8) (push) Canceled after 0s
Ubuntu / ci_test_compilers_gcc (9) (push) Canceled after 0s
Ubuntu / ci_test_compilers_gcc (latest) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (10) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (11) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (12) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (13) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (14) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (15-bullseye) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (16) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (17) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (18) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (19) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (20) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (21) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (22) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (3.4) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (3.5) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (3.6) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (3.7) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (3.8) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (3.9) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (4) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (5) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (6) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (7) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (8) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (9) (push) Canceled after 0s
Ubuntu / ci_test_compilers_clang (latest) (push) Canceled after 0s
Ubuntu / ci_test_standards_gcc (11) (push) Canceled after 0s
Ubuntu / ci_test_standards_gcc (14) (push) Canceled after 0s
Ubuntu / ci_test_standards_gcc (17) (push) Canceled after 0s
Ubuntu / ci_test_standards_gcc (20) (push) Canceled after 0s
Ubuntu / ci_test_standards_gcc (23) (push) Canceled after 0s
Ubuntu / ci_test_standards_gcc (26) (push) Canceled after 0s
Ubuntu / ci_test_standards_clang (11, libcxx) (push) Canceled after 0s
Ubuntu / ci_test_standards_clang (11, libstdcxx) (push) Canceled after 0s
Ubuntu / ci_test_standards_clang (14, libcxx) (push) Canceled after 0s
Ubuntu / ci_test_standards_clang (14, libstdcxx) (push) Canceled after 0s
Ubuntu / ci_test_standards_clang (17, libcxx) (push) Canceled after 0s
Ubuntu / ci_test_standards_clang (17, libstdcxx) (push) Canceled after 0s
Ubuntu / ci_test_standards_clang (20, libcxx) (push) Canceled after 0s
Ubuntu / ci_test_standards_clang (20, libstdcxx) (push) Canceled after 0s
Ubuntu / ci_test_standards_clang (23, libcxx) (push) Canceled after 0s
Ubuntu / ci_test_standards_clang (23, libstdcxx) (push) Canceled after 0s
Ubuntu / ci_test_standards_clang (26, libcxx) (push) Canceled after 0s
Ubuntu / ci_test_standards_clang (26, libstdcxx) (push) Canceled after 0s
Ubuntu / ci_cuda_example (11.8.0) (push) Canceled after 0s
Ubuntu / ci_cuda_example (12.1.1) (push) Canceled after 0s
Ubuntu / ci_cuda_example (12.6.3) (push) Canceled after 0s
Ubuntu / ci_module_cpp20 (gcc:latest) (push) Canceled after 0s
Ubuntu / ci_module_cpp20 (silkeh/clang:latest) (push) Canceled after 0s
Ubuntu / ci_icpc (push) Canceled after 0s
Ubuntu / ci_icpx (push) Canceled after 0s
Ubuntu / ci_nvhpc (push) Canceled after 0s
Ubuntu / ci_emscripten (push) Canceled after 0s
Ubuntu / ci_test_documentation (ci_test_build_documentation) (push) Canceled after 0s
Ubuntu / ci_test_documentation (ci_test_examples) (push) Canceled after 0s
Windows / mingw (x64) (push) Canceled after 0s
Windows / mingw (x86) (push) Canceled after 0s
Windows / msvc (Win32, Debug, default) (push) Canceled after 0s
Windows / msvc (Win32, Debug, latest) (push) Canceled after 0s
Windows / msvc (Win32, Release, default) (push) Canceled after 0s
Windows / msvc (Win32, Release, latest) (push) Canceled after 0s
Windows / msvc (x64, Debug, default) (push) Canceled after 0s
Windows / msvc (x64, Debug, latest) (push) Canceled after 0s
Windows / msvc (x64, Release, default) (push) Canceled after 0s
Windows / msvc (x64, Release, latest) (push) Canceled after 0s
Windows / msvc-vs2026 (Win32, Debug, default) (push) Canceled after 0s
Windows / msvc-vs2026 (Win32, Debug, latest) (push) Canceled after 0s
Windows / msvc-vs2026 (Win32, Release, default) (push) Canceled after 0s
Windows / msvc-vs2026 (Win32, Release, latest) (push) Canceled after 0s
Windows / msvc-vs2026 (x64, Debug, default) (push) Canceled after 0s
Windows / msvc-vs2026 (x64, Debug, latest) (push) Canceled after 0s
Windows / msvc-vs2026 (x64, Release, default) (push) Canceled after 0s
Windows / msvc-vs2026 (x64, Release, latest) (push) Canceled after 0s
Windows / msvc-arm64 (Debug) (push) Canceled after 0s
Windows / msvc-arm64 (Release) (push) Canceled after 0s
Windows / clang (11.0.1) (push) Canceled after 0s
Windows / clang (12.0.1) (push) Canceled after 0s
Windows / clang (13.0.1) (push) Canceled after 0s
Windows / clang (14.0.6) (push) Canceled after 0s
Windows / clang (15.0.7) (push) Canceled after 0s
Windows / clang (16.0.6) (push) Canceled after 0s
Windows / clang (18.1.8) (push) Canceled after 0s
Windows / clang (19.1.7) (push) Canceled after 0s
Windows / clang (20.1.8) (push) Canceled after 0s
Windows / clang-cl-12 (Win32) (push) Canceled after 0s
Windows / clang-cl-12 (x64) (push) Canceled after 0s
Windows / ci_module_cpp20 (push) Canceled after 0s
Format-check the documentation examples in CI (#5386)
* Reformat parser_callback_t example with astyle

The file uses "json & /*parsed*/" in three lambda parameter lists, which
astyle rewrites to "json& /*parsed*/" per --align-reference=type. The
drift went unnoticed because CI never format-checked the documentation
examples; "make pretty" does cover them.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* Format-check the documentation examples in CI

The examples live in docs/mkdocs/docs/examples, but both format checks
still referenced the long-gone docs/examples path:

- check_amalgamation.yml passed it to find, which printed an error for
  the missing path and carried on, so astyle only ever saw include and
  tests. The step still exited 0.
- ci.cmake globbed it into INDENT_FILES, and a GLOB_RECURSE over a
  missing directory silently yields nothing, so the ci_test_amalgamation
  target skipped the examples too.

Either way the 231 example files have never been format-checked. Point
both at the real path, and guard the workflow with an explicit directory
check so a future rename fails the job instead of quietly shrinking the
file list again.

Also drop the dead docs/examples/** path filter from
publish_documentation.yml; docs/mkdocs/** already covers the examples.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

---------

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
2026-08-20 12:32:50 +02:00
..
2026-05-14 15:39:18 +02:00
2022-09-18 08:15:12 +02:00
2025-05-16 08:32:18 +02:00