Niels Lohmann
f07a17ce29
Document the vendored doctest.h patch; fix stale doctest_compatibility.h comments
...
tests/thirdparty/doctest/doctest.h is doctest 2.4.12, imported in
#4771 . Two weeks later, #4801 hand-edited translateActiveException()
to declare "String res;" inside the translator loop instead of before
it, so a translator that does not match does not leave a previous
translator's result in "res" for the next iteration to see. Nothing
recorded this, so re-vendoring doctest.h from upstream would silently
drop the fix. Add a comment at the patched site naming the version,
the PR and the reason, so a future re-vendor knows to re-apply it.
Also fix two stale comments in doctest_compatibility.h:
- The DOCTEST_THREAD_LOCAL comment referenced Xcode 6/7, which is no
longer supported; reword it to explain why the define must stay
regardless (it keeps doctest's own thread_local usage out of the way
of the same Clang/MinGW crash that JSON_NO_THREAD_LOCAL works around
in the library, see ci_test_no_thread_local).
- The <iosfwd> include's comment justified it with tests that define
"private" as "public"; no test under tests/src does that any more
(removed by #2352 ). Reword the comment instead of dropping the
include, since confirming it is safe to drop needs the full CI
matrix including MSVC 2015+.
Verified locally that tests/src/unit-readme.cpp still builds and
passes 17/17 with these headers.
Closes #5714 item 9.
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
2026-09-30 18:19:33 +02:00
Niels Lohmann
82f4f70669
Adjust warnings flags ( #4801 )
...
* 🚨 suppress warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 suppress warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 suppress warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 suppress warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 suppress warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 suppress warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
---------
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
2025-05-31 17:48:34 +02:00
Niels Lohmann
6f6be39332
Add GCC 15.1.0 flags ( #4766 )
...
* 🔧 add GCC 15.1.0 flags
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🔧 add GCC 15.1.0 flags
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🔧 add GCC 15.1.0 flags
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 suppress -Wstrict-overflow warning
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 suppress -Wstrict-overflow warning
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 suppress -Wstrict-overflow warning
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 suppress -Wstrict-overflow warning
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix -Wstrict-overflow warning
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix -Wstrict-overflow warning
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🎨 fix format
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
---------
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
2025-05-16 08:32:18 +02:00
Niels Lohmann
e02de2f971
Update to Doctest 2.4.12 ( #4771 )
...
* ⬆️ Doctest 2.4.12
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
* 🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
---------
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
2025-05-15 19:25:27 +02:00
Niels Lohmann
a0c1318830
Fix CI + new Doctest ( #3985 )
2023-05-21 17:23:18 +02:00
Niels Lohmann and Florian Albrechtskirchinger
58bd97e2b1
Add clang-tools to required tools for ci_static_analysis_clang ( #3724 )
...
* 💚 add clang-tools to required tools for ci_static_analysis_clang
* 🚨 update Clang-Tidy warning selection
* 🚨 fix Clang-Tidy warnings
* 🚨 fix Clang-Tidy warnings
* 🚨 fix Clang-Tidy warnings
* 🚨 fix Clang-Tidy warnings
* 🚨 fix Clang-Tidy warnings
* 🚨 fix Clang-Tidy warnings
* 🚨 fix Clang-Tidy warnings
* 🚨 fix Clang-Tidy warnings
* 🚨 fix Clang-Tidy warnings
* 🚨 fix Clang-Tidy warnings
* 🚨 fix Clang-Tidy warnings (#3738 )
* ⏪ revert fix
* ⏪ revert fix
* 🚨 fix Clang-Tidy warnings (#3739 )
Co-authored-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com >
2022-09-13 12:58:26 +02:00
Niels Lohmann and Florian Albrechtskirchinger
527da54dcb
Use REUSE framework ( #3546 )
...
* 📄 add licenses
* 👷 add REUSE compliance check
* 📝 add badge for REUSE
Co-authored-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com >
2022-07-20 12:38:07 +02:00
Niels Lohmann
b21c345179
Reorganize directories ( #3462 )
...
* 🚚 move files
* 🚚 rename doc folder to docs
* 🚚 rename test folder to tests
2022-05-01 09:41:50 +02:00