json/tests
Mike Crowe 4eda97d6bb Add clang-tidy plugin for modernize-nlohmann-json-explicit-conversions
Add a clang-tidy plugin containing one check to replace implicit
conversions (as enabled by default with JSON_USE_IMPLICIT_CONVERSIONS)
with explicit ones. This will make it easier for library users to switch
away from using implicit conversions which should make it possible for
the library to start disallowing them sooner.

Being able to test the plugin in a similar way to how checks are tested
within clang-tidy itself requires copying the check_clang_tidy.py script
from the LLVM code itself.

The check itself is virtually identical to the one proposed for
inclusion in clang-tidy itself at
https://github.com/llvm/llvm-project/pull/126425 .

Unfortunately it is necessary to add "C" to the languages for the
project in CMakeLists.txt for find_package to work for LLVM.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
2025-02-23 19:28:47 +00:00
..
abi Bump the copyright years (#4606) 2025-01-19 17:04:17 +01:00
benchmarks Bump the copyright years (#4606) 2025-01-19 17:04:17 +01:00
clang_tidy_plugin Add clang-tidy plugin for modernize-nlohmann-json-explicit-conversions 2025-02-23 19:28:47 +00:00
cmake_add_subdirectory Bump the copyright years (#4606) 2025-01-19 17:04:17 +01:00
cmake_fetch_content Bump the copyright years (#4606) 2025-01-19 17:04:17 +01:00
cmake_fetch_content2 Bump the copyright years (#4606) 2025-01-19 17:04:17 +01:00
cmake_import Bump the copyright years (#4606) 2025-01-19 17:04:17 +01:00
cmake_import_minver Bump the copyright years (#4606) 2025-01-19 17:04:17 +01:00
cmake_target_include_directories Bump the copyright years (#4606) 2025-01-19 17:04:17 +01:00
cuda_example Bump the copyright years (#4606) 2025-01-19 17:04:17 +01:00
reports Reorganize directories (#3462) 2022-05-01 09:41:50 +02:00
src Add regression test for #3810 (#4608) 2025-02-15 12:24:06 +01:00
thirdparty Clean up and document project files (#4560) 2025-01-17 06:53:35 +01:00
CMakeLists.txt Add clang-tidy plugin for modernize-nlohmann-json-explicit-conversions 2025-02-23 19:28:47 +00:00
fuzzing.md Document fuzzer usage (#3478) 2022-05-09 08:02:41 +02:00
Makefile Reorganize directories (#3462) 2022-05-01 09:41:50 +02:00