Files
json/tools/amalgamate/CHANGES.md
Niels Lohmann 33ef25099d Keep external headers as #include when amalgamating
A header that builds on json.hpp (such as the planned json_view.hpp) must
not inline json.hpp: its single-header version would contain a second copy
of the library, and that copy would change with every library change.

The optional config key "external" lists include paths that are kept as
#include directives. Only the first directive per path is kept; repeated
ones are commented out, as the tool already does for inlined headers.
config_json_view.json uses it for json_view.hpp; the existing configs do
not set it, and json.hpp and json_fwd.hpp regenerate byte-identically.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
2026-09-29 03:49:24 +02:00

635 B

The following changes have been made to the code with respect to https://github.com/edlund/amalgamate/commit/c91f07eea1133aa184f652b8f1398eaf03586208:

  • Resolved inspection results from PyCharm:
    • replaced tabs with spaces
    • added encoding annotation
    • reindented file to remove trailing whitespaces
    • unused import sys
    • membership check
    • made function from _is_within
    • removed unused variable actual_path
  • Added the optional config key external: include paths listed there are kept as #include directives instead of being inlined (the first directive per path; the repeated ones are commented out).