Module: check_mk
Branch: master
Commit: a83eddf6f59383d4db086464b2c347401f42d7e5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a83eddf6f59383…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Nov 5 15:47:05 2015 +0100
Include what you use
Heavy cleanup of our #include story:
* #include only what is needed.
* #include everything that is needed, making headers self-sufficient.
* Use forward declarations instead of #includes when possible.
* Use a canonical order of #includes (alpabetical within each category):
* The accompanying header for an implementation file.
* Standard C headers
* Standard C++ headers
* Our own headers
This was done with heavy help from the IWYU tool, see
http://include-what-you-use.org/
https://github.com/include-what-you-use/include-what-you-use
for more background.
---
livestatus/src/Aggregator.h | 2 +-
livestatus/src/AndingFilter.cc | 4 +--
livestatus/src/AndingFilter.h | 10 +++---
livestatus/src/AttributelistColumn.cc | 13 ++++---
livestatus/src/AttributelistColumn.h | 13 +++----
livestatus/src/AttributelistFilter.cc | 3 +-
livestatus/src/AttributelistFilter.h | 7 ++--
livestatus/src/BlobColumn.cc | 4 +--
livestatus/src/BlobColumn.h | 7 ++--
livestatus/src/ClientQueue.cc | 1 +
livestatus/src/ClientQueue.h | 8 ++---
livestatus/src/Column.cc | 4 +--
livestatus/src/Column.h | 11 +++---
livestatus/src/ColumnsColumn.cc | 3 +-
livestatus/src/ColumnsColumn.h | 9 +++--
livestatus/src/ContactgroupsColumn.h | 10 +++---
livestatus/src/ContactgroupsMemberColumn.cc | 5 +--
livestatus/src/ContactgroupsMemberColumn.h | 6 ++--
livestatus/src/ContactsColumn.cc | 8 ++---
livestatus/src/ContactsColumn.h | 8 +++--
livestatus/src/CountAggregator.cc | 3 +-
livestatus/src/CountAggregator.h | 5 +--
livestatus/src/CustomTimeperiodColumn.cc | 3 +-
livestatus/src/CustomTimeperiodColumn.h | 5 ++-
livestatus/src/CustomVarsColumn.cc | 4 +--
livestatus/src/CustomVarsColumn.h | 12 +++----
livestatus/src/CustomVarsExplicitColumn.cc | 1 +
livestatus/src/CustomVarsExplicitColumn.h | 3 +-
livestatus/src/CustomVarsFilter.cc | 15 ++++----
livestatus/src/CustomVarsFilter.h | 10 +++---
livestatus/src/DoubleAggregator.cc | 6 ++--
livestatus/src/DoubleAggregator.h | 4 ++-
livestatus/src/DoubleColumn.cc | 3 ++
livestatus/src/DoubleColumn.h | 8 +++--
livestatus/src/DoubleColumnFilter.cc | 4 +--
livestatus/src/DoubleColumnFilter.h | 8 ++---
livestatus/src/DownCommColumn.cc | 11 ++++--
livestatus/src/DownCommColumn.h | 10 +++---
livestatus/src/DowntimeOrComment.cc | 4 ++-
livestatus/src/DowntimeOrComment.h | 11 ++----
livestatus/src/DynamicColumn.cc | 2 +-
livestatus/src/DynamicColumn.h | 4 +--
livestatus/src/EmptyColumn.cc | 1 +
livestatus/src/EmptyColumn.h | 6 ++--
livestatus/src/Filter.cc | 1 -
livestatus/src/Filter.h | 11 +++---
livestatus/src/GlobalCountersColumn.cc | 5 ++-
livestatus/src/GlobalCountersColumn.h | 10 +++---
livestatus/src/HostContactsColumn.cc | 5 ++-
livestatus/src/HostContactsColumn.h | 7 ++--
livestatus/src/HostFileColumn.cc | 12 +++----
livestatus/src/HostFileColumn.h | 3 ++
livestatus/src/HostServiceState.cc | 3 +-
livestatus/src/HostServiceState.h | 8 +++--
livestatus/src/HostSpecialDoubleColumn.cc | 2 +-
livestatus/src/HostSpecialDoubleColumn.h | 5 +--
livestatus/src/HostSpecialIntColumn.cc | 3 +-
livestatus/src/HostSpecialIntColumn.h | 9 +++--
livestatus/src/HostgroupsColumn.cc | 2 +-
livestatus/src/HostgroupsColumn.h | 10 +++---
livestatus/src/HostlistColumn.cc | 4 +--
livestatus/src/HostlistColumn.h | 10 +++---
livestatus/src/HostlistColumnFilter.cc | 5 +--
livestatus/src/HostlistColumnFilter.h | 9 ++---
livestatus/src/HostlistStateColumn.cc | 6 ++--
livestatus/src/HostlistStateColumn.h | 9 ++---
livestatus/src/InputBuffer.cc | 12 +++----
livestatus/src/InputBuffer.h | 9 +++--
livestatus/src/IntAggregator.cc | 6 ++--
livestatus/src/IntAggregator.h | 5 ++-
livestatus/src/IntColumn.cc | 3 ++
livestatus/src/IntColumn.h | 9 ++---
livestatus/src/IntColumnFilter.h | 9 +++--
livestatus/src/ListColumn.h | 6 ++--
livestatus/src/ListColumnFilter.cc | 6 ++--
livestatus/src/ListColumnFilter.h | 6 ++--
livestatus/src/LogCache.cc | 19 ++++------
livestatus/src/LogCache.h | 10 +++---
livestatus/src/LogEntry.cc | 8 ++---
livestatus/src/LogEntry.h | 8 +++--
livestatus/src/Logfile.cc | 12 ++++---
livestatus/src/Logfile.h | 18 +++++-----
livestatus/src/Makefile.am | 2 +-
livestatus/src/MetricsColumn.cc | 1 +
livestatus/src/MetricsColumn.h | 4 +++
livestatus/src/NegatingFilter.h | 2 +-
livestatus/src/NullColumn.cc | 1 +
livestatus/src/NullColumn.h | 6 ++--
livestatus/src/OffsetDoubleColumn.cc | 3 +-
livestatus/src/OffsetDoubleColumn.h | 8 ++---
livestatus/src/OffsetIntColumn.cc | 4 +--
livestatus/src/OffsetIntColumn.h | 10 +++---
livestatus/src/OffsetStringColumn.cc | 3 +-
livestatus/src/OffsetStringColumn.h | 7 ++--
livestatus/src/OffsetStringHostMacroColumn.cc | 4 +--
livestatus/src/OffsetStringHostMacroColumn.h | 6 ++--
livestatus/src/OffsetStringMacroColumn.cc | 8 ++---
livestatus/src/OffsetStringMacroColumn.h | 8 +++--
livestatus/src/OffsetStringServiceMacroColumn.cc | 4 +--
livestatus/src/OffsetStringServiceMacroColumn.h | 6 ++--
livestatus/src/OffsetTimeColumn.cc | 3 +-
livestatus/src/OffsetTimeColumn.h | 10 +++---
livestatus/src/OffsetTimeperiodColumn.cc | 8 ++---
livestatus/src/OffsetTimeperiodColumn.h | 12 +++----
livestatus/src/OringFilter.cc | 3 +-
livestatus/src/OringFilter.h | 7 ++--
livestatus/src/OutputBuffer.cc | 12 ++++---
livestatus/src/OutputBuffer.h | 7 ++--
livestatus/src/PerfdataAggregator.cc | 16 +++++----
livestatus/src/PerfdataAggregator.h | 4 ++-
livestatus/src/Query.cc | 37 +++++++++++---------
livestatus/src/Query.h | 22 ++++++------
livestatus/src/ServiceContactsColumn.cc | 4 +--
livestatus/src/ServiceContactsColumn.h | 7 ++--
livestatus/src/ServiceSpecialDoubleColumn.cc | 2 +-
livestatus/src/ServiceSpecialDoubleColumn.h | 5 +--
livestatus/src/ServiceSpecialIntColumn.cc | 1 +
livestatus/src/ServiceSpecialIntColumn.h | 7 ++--
livestatus/src/ServicegroupsColumn.cc | 2 +-
livestatus/src/ServicegroupsColumn.h | 10 +++---
livestatus/src/ServicelistColumn.cc | 6 ++--
livestatus/src/ServicelistColumn.h | 10 +++---
livestatus/src/ServicelistColumnFilter.cc | 7 ++--
livestatus/src/ServicelistColumnFilter.h | 9 ++---
livestatus/src/ServicelistStateColumn.cc | 6 ++--
livestatus/src/ServicelistStateColumn.h | 9 ++---
livestatus/src/StatsColumn.cc | 8 +++--
livestatus/src/StatsColumn.h | 10 +++---
livestatus/src/StatusSpecialIntColumn.cc | 1 +
livestatus/src/StatusSpecialIntColumn.h | 4 +++
livestatus/src/Store.cc | 17 +++++++--
livestatus/src/Store.h | 34 +++++++++---------
livestatus/src/StringColumn.cc | 5 ++-
livestatus/src/StringColumn.h | 8 +++--
livestatus/src/StringColumnFilter.cc | 9 +++--
livestatus/src/StringColumnFilter.h | 8 ++---
livestatus/src/Table.cc | 9 +++--
livestatus/src/Table.h | 10 ++----
livestatus/src/TableColumns.cc | 5 ++-
livestatus/src/TableColumns.h | 8 ++---
livestatus/src/TableCommands.cc | 12 +++----
livestatus/src/TableCommands.h | 9 +++--
livestatus/src/TableContactgroups.cc | 9 ++---
livestatus/src/TableContactgroups.h | 8 ++---
livestatus/src/TableContacts.cc | 13 ++++---
livestatus/src/TableContacts.h | 7 ++--
livestatus/src/TableDownComm.cc | 14 ++++----
livestatus/src/TableDownComm.h | 11 ++----
livestatus/src/TableHostgroups.cc | 9 ++---
livestatus/src/TableHostgroups.h | 10 +++---
livestatus/src/TableHosts.cc | 40 +++++++++++-----------
livestatus/src/TableHosts.h | 10 +++---
livestatus/src/TableLog.cc | 27 +++++++--------
livestatus/src/TableLog.h | 9 +++--
livestatus/src/TableServicegroups.cc | 6 ++--
livestatus/src/TableServicegroups.h | 10 +++---
livestatus/src/TableServices.cc | 38 ++++++++++----------
livestatus/src/TableServices.h | 12 +++----
livestatus/src/TableStateHistory.cc | 40 +++++++++++++---------
livestatus/src/TableStateHistory.h | 20 ++++++-----
livestatus/src/TableStatus.cc | 12 +++----
livestatus/src/TableStatus.h | 6 ++--
livestatus/src/TableTimeperiods.cc | 8 +++--
livestatus/src/TableTimeperiods.h | 5 ++-
livestatus/src/TimeColumnFilter.cc | 1 +
livestatus/src/TimeColumnFilter.h | 5 ++-
livestatus/src/TimePointerColumn.cc | 3 +-
livestatus/src/TimePointerColumn.h | 7 +++-
livestatus/src/TimeperiodsCache.cc | 13 +++----
livestatus/src/TimeperiodsCache.h | 4 +++
livestatus/src/auth.cc | 2 +-
livestatus/src/auth.h | 5 +--
livestatus/src/global_counters.h | 2 +-
livestatus/src/logger.c | 7 ++--
livestatus/src/logger.h | 39 +++++++++------------
livestatus/src/mk_inventory.cc | 4 +--
livestatus/src/mk_inventory.h | 5 +--
livestatus/src/module.c | 36 +++++++++----------
livestatus/src/nagios.h | 11 +++++-
livestatus/src/opids.cc | 1 -
livestatus/src/opids.h | 4 +--
livestatus/src/pnp4nagios.cc | 4 +--
livestatus/src/pnp4nagios.h | 2 ++
livestatus/src/store_c.cc | 14 ++------
livestatus/src/store_c.h | 5 ++-
livestatus/src/strutil.h | 2 +-
livestatus/src/unixcat.c | 16 +++++----
livestatus/src/waittriggers.c | 2 +-
livestatus/src/waittriggers.h | 7 ++--
189 files changed, 816 insertions(+), 743 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=a83eddf6f5…