Skip to content

Instantly share code, notes, and snippets.

@crondaemon
Last active December 4, 2015 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crondaemon/bcd9cd6af3ce3887c58a to your computer and use it in GitHub Desktop.
Save crondaemon/bcd9cd6af3ce3887c58a to your computer and use it in GitHub Desktop.
iwyu test 1
$ make packet-aeron.o -k
CC packet-aeron.o
warning: optimization flag '-fno-delete-null-pointer-checks' is not supported
warning: optimization flag '-fexcess-precision=fast' is not supported
warning: argument unused during compilation: '-fno-strict-overflow'
warning: argument unused during compilation: '-fno-delete-null-pointer-checks'
warning: argument unused during compilation: '-fexcess-precision=fast'
warning: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? [-Wunknown-warning-option]
warning: unknown warning option '-Wjump-misses-init'; did you mean '-Wimplicit-int'? [-Wunknown-warning-option]
packet-aeron.c should add these lines:
#include <glib/gmacros.h> // for FALSE, TRUE
#include <glib/gtypes.h> // for gint, gboolean, gchar, etc
#include <glibconfig.h> // for guint32, G_GUINT32_FORMAT, etc
#include <stddef.h> // for size_t
#include <string.h> // for NULL, memcpy, memset
#include "./address.h" // for address, copy_address_wmem, etc
#include "./column-utils.h" // for ::COL_INFO, etc
#include "./frame_data.h" // for frame_data, etc
#include "./ftypes/ftypes.h" // for ftenum::FT_UINT32, etc
#include "./packet.h" // for array_length, etc
#include "./tfs.h" // for tfs_set_notset
#include "./value_string.h" // for val_to_str_const, etc
#include "epan/packet_info.h" // for packet_info
#include "epan/proto.h" // for proto_tree_add_item, HFILL, etc
#include "epan/tvbuff.h" // for tvb_get_letohl, tvbuff_t, etc
#include "epan/wmem/wmem_core.h" // for wmem_new0, wmem_alloc, etc
#include "epan/wmem/wmem_list.h" // for wmem_list_frame_data, etc
#include "epan/wmem/wmem_map.h" // for wmem_map_insert, etc
#include "epan/wmem/wmem_scopes.h" // for wmem_file_scope, etc
#include "epan/wmem/wmem_strbuf.h" // for wmem_strbuf_append_printf, etc
#include "epan/wmem/wmem_tree.h" // for wmem_tree_key_t, etc
packet-aeron.c should remove these lines:
- #include <arpa/inet.h> // lines 24-24
The full include-list for packet-aeron.c:
#include <epan/conversation.h> // for conversation_t, etc
#include <epan/exceptions.h> // for ReportedBoundsError, THROW
#include <epan/expert.h> // for expert_add_info, EI_INIT, etc
#include <epan/prefs.h>
#include <epan/to_str.h> // for address_to_str
#include <glib/gmacros.h> // for FALSE, TRUE
#include <glib/gtypes.h> // for gint, gboolean, gchar, etc
#include <glibconfig.h> // for guint32, G_GUINT32_FORMAT, etc
#include <stddef.h> // for size_t
#include <string.h> // for NULL, memcpy, memset
#include "./address.h" // for address, copy_address_wmem, etc
#include "./column-utils.h" // for ::COL_INFO, etc
#include "./frame_data.h" // for frame_data, etc
#include "./ftypes/ftypes.h" // for ftenum::FT_UINT32, etc
#include "./packet.h" // for array_length, etc
#include "./tfs.h" // for tfs_set_notset
#include "./value_string.h" // for val_to_str_const, etc
#include "config.h" // for _U_, HAVE_ARPA_INET_H, etc
#include "epan/packet_info.h" // for packet_info
#include "epan/proto.h" // for proto_tree_add_item, HFILL, etc
#include "epan/tvbuff.h" // for tvb_get_letohl, tvbuff_t, etc
#include "epan/wmem/wmem_core.h" // for wmem_new0, wmem_alloc, etc
#include "epan/wmem/wmem_list.h" // for wmem_list_frame_data, etc
#include "epan/wmem/wmem_map.h" // for wmem_map_insert, etc
#include "epan/wmem/wmem_scopes.h" // for wmem_file_scope, etc
#include "epan/wmem/wmem_strbuf.h" // for wmem_strbuf_append_printf, etc
#include "epan/wmem/wmem_tree.h" // for wmem_tree_key_t, etc
struct aeron_fragment_t_stct; // lines 310-310
struct aeron_frame_info_t_stct; // lines 154-154
struct aeron_msg_fragment_t_stct; // lines 1869-1869
struct aeron_msg_t_stct; // lines 203-203
struct aeron_stream_rcv_t_stct; // lines 325-325
struct aeron_stream_t_stct; // lines 304-304
struct aeron_term_t_stct; // lines 307-307
struct aeron_transport_t_stct; // lines 301-301
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment