Skip to content

Commit

Permalink
temp: add clang-tidy rule
Browse files Browse the repository at this point in the history
  • Loading branch information
theuni committed May 15, 2024
1 parent 35b5b0f commit 2063d40
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,16 @@ EXTRA_DIST += $(libbitcoin_ipc_mpgen_input)
# https://www.gnu.org/software/automake/manual/html_node/Built-Sources-Example.html#Recording-Dependencies-manually
ipc/capnp/libbitcoin_ipc_a-protocol.$(OBJEXT): $(libbitcoin_ipc_mpgen_input:=.h)

CLANGTIDY=clang-tidy

%.cpp.tidy: %.cpp FORCE
@echo clang-tidy: $<
$(AM_V_at)$(CLANGTIDY) -checks='$(CLANG_TIDY_CHECKS)' $< -- -std=c++20 $(DEFS) $(BITCOIN_INCLUDES) $(BOOST_CPPFLAGS)

BITCOIND_ALL_CPP=$(bitcoind_SOURCES) $(libbitcoin_wallet_a_SOURCES) $(libbitcoin_common_a_SOURCES) $(libbitcoin_util_a_SOURCES) $(libbitcoin_zmq_a_SOURCES) $(libbitcoin_consensus_a_SOURCES) $(libbitcoin_node_a_SOURCES)

bitcoind-tidy: FORCE $(BITCOIND_ALL_CPP:%.cpp=%.cpp.tidy)

if BUILD_MULTIPROCESS
LIBBITCOIN_IPC=libbitcoin_ipc.a
libbitcoin_ipc_a_SOURCES = \
Expand Down

0 comments on commit 2063d40

Please sign in to comment.