mirror of
https://github.com/nlohmann/json.git
synced 2026-10-07 23:17:14 +00:00
Add a natvis fallback visualizer for detail::json_default_base (#5588)
* Add a natvis fallback visualizer for detail::json_default_base Squashed onto develop from: - Add a type in the natvis template for detail::json_default_base - Document the json_default_base natvis fallback and regenerate natvis - Match json_default_base in both its current and 3.12.0 namespace Co-authored-by: Mihnea Magheru <sakuntalle@yahoo.com> Signed-off-by: Mihnea Magheru <sakuntalle@yahoo.com> Signed-off-by: Niels Lohmann <mail@nlohmann.me> * Take the natvis template from the PR in the amalgamation check The check ran generate_natvis.py from a develop checkout, which loads nlohmann_json.natvis.j2 from its own directory. A PR that changes the template was therefore checked against develop's template and always failed. Copy the PR's template next to the develop script before running it. Signed-off-by: Niels Lohmann <mail@nlohmann.me> --------- Signed-off-by: Mihnea Magheru <sakuntalle@yahoo.com> Signed-off-by: Niels Lohmann <mail@nlohmann.me> Co-authored-by: Mihnea Magheru <sakuntalle@yahoo.com>
This commit is contained in:
1 parent
069ace74af
commit
e752688b52
3 files changed
+22605
No files matched your search
@@ -149,6 +149,13 @@ jobs:
|
||||
VERSION_MAJOR=$(grep -m1 'define NLOHMANN_JSON_VERSION_MAJOR' $ABI_MACROS | grep -o '[0-9]\+')
|
||||
VERSION_MINOR=$(grep -m1 'define NLOHMANN_JSON_VERSION_MINOR' $ABI_MACROS | grep -o '[0-9]\+')
|
||||
VERSION_PATCH=$(grep -m1 'define NLOHMANN_JSON_VERSION_PATCH' $ABI_MACROS | grep -o '[0-9]\+')
|
||||
# The template is what this check verifies the committed natvis
|
||||
# file against, so take it from this PR rather than from the
|
||||
# develop checkout: generate_natvis.py loads the template from its
|
||||
# own directory, and with develop's copy a PR that changes the
|
||||
# template could never pass. Like the macro_builder step above,
|
||||
# this only renders PR content in a job without credentials.
|
||||
cp tools/generate_natvis/nlohmann_json.natvis.j2 $NATVIS_TOOL_DIR/
|
||||
python3 $NATVIS_TOOL_DIR/generate_natvis.py --version "$VERSION_MAJOR.$VERSION_MINOR.$VERSION_PATCH" $MAIN_DIR
|
||||
|
||||
- name: Build patch and check for differences
|
||||
|
||||
Reference in new issue
Block a user