From 589b65f06c3376df4cde3fac5c1d39a2d3254920 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Thu, 4 Sep 2025 23:07:40 +0100 Subject: [PATCH] clang-tidy: Disable `UndefinedBinaryOperatorResult` check in `src/ipc` The warnings are false positive and have been fixed upstream. See: https://github.com/capnproto/capnproto/pull/2334. This change disables the `UndefinedBinaryOperatorResult` clang-tidy check for source files generated by the `mpgen` tool. --- src/ipc/.clang-tidy.in | 3 +++ src/ipc/CMakeLists.txt | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 src/ipc/.clang-tidy.in diff --git a/src/ipc/.clang-tidy.in b/src/ipc/.clang-tidy.in new file mode 100644 index 00000000000..2fc880ed078 --- /dev/null +++ b/src/ipc/.clang-tidy.in @@ -0,0 +1,3 @@ +Checks: ' +-clang-analyzer-core.UndefinedBinaryOperatorResult, +' diff --git a/src/ipc/CMakeLists.txt b/src/ipc/CMakeLists.txt index 904d72f56e1..8f0437be35a 100644 --- a/src/ipc/CMakeLists.txt +++ b/src/ipc/CMakeLists.txt @@ -21,3 +21,5 @@ target_link_libraries(bitcoin_ipc core_interface univalue ) + +configure_file(.clang-tidy.in .clang-tidy USE_SOURCE_PERMISSIONS COPYONLY)