Makefile: make check-includes check all the non-generated files.

Note that check-whitespace and check-bolt already do this, so we
can eliminate redundant lines in common/Makefile and bitcoin/Makefile.

We also include the plugin headers in ALL_C_HEADERS so they get
checked.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-10-22 11:27:07 +10:30
parent 5e865ce42b
commit a8177e9013
22 changed files with 35 additions and 37 deletions

View File

@@ -15,8 +15,8 @@
#include <common/version.h>
#include <secp256k1.h>
#include <secp256k1_ecdh.h>
#include <sodium/crypto_auth_hmacsha256.h>
#include <sodium/crypto_aead_chacha20poly1305.h>
#include <sodium/crypto_auth_hmacsha256.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>

View File

@@ -6,11 +6,11 @@
#include <stdio.h>
#include <unistd.h>
#if EXPERIMENTAL_FEATURES
#include <wire/onion_exp_printgen.h>
#include <wire/peer_exp_printgen.h>
#include <wire/onion_exp_printgen.h>
#include <wire/peer_exp_printgen.h>
#else
#include <wire/onion_printgen.h>
#include <wire/peer_printgen.h>
#include <wire/onion_printgen.h>
#include <wire/peer_printgen.h>
#endif
int main(int argc, char *argv[])

View File

@@ -1,12 +1,12 @@
#include <ccan/crc32c/crc32c.h>
#include <ccan/err/err.h>
#include <ccan/opt/opt.h>
#include <common/gossip_store.h>
#include <common/type_to_string.h>
#include <common/utils.h>
#include <fcntl.h>
#include <common/gossip_store.h>
#include <gossipd/gossipd_peerd_wiregen.h>
#include <gossipd/gossip_store_wiregen.h>
#include <gossipd/gossipd_peerd_wiregen.h>
#include <inttypes.h>
#include <stdio.h>
#include <sys/stat.h>

View File

@@ -42,7 +42,7 @@ static struct io_plan *simple_close(struct io_conn *conn)
return NULL;
}
#include "../connectd/handshake.c"
#include "../connectd/handshake.c"
/* This makes the handshake prototypes work. */
struct io_conn {

View File

@@ -12,8 +12,8 @@
#include <bitcoin/script.h>
#include <bitcoin/tx.h>
#include <ccan/cast/cast.h>
#include <ccan/opt/opt.h>
#include <ccan/err/err.h>
#include <ccan/opt/opt.h>
#include <ccan/str/hex/hex.h>
#include <ccan/tal/str/str.h>
#include <channeld/full_channel.h>

View File

@@ -21,8 +21,8 @@
#include <common/type_to_string.h>
#include <common/utils.h>
#include <inttypes.h>
#include <wire/peer_wire.h>
#include <stdio.h>
#include <wire/peer_wire.h>
static bool verbose = false;

View File

@@ -11,8 +11,8 @@
#include <common/gossip_constants.h>
#include <common/utils.h>
#include <inttypes.h>
#include <wire/peer_wire.h>
#include <stdio.h>
#include <wire/peer_wire.h>
static void usage(void)
{