iwyu: //aos/logging/...

The full include-list for aos/logging/interface.h:
<stddef.h>               // for size_t
<cstdarg>                // for va_list, va_end, va_start
<string_view>            // for string_view
"aos/logging/logging.h"  // for log_level
"aos/macros.h"           // for GOOD_PRINTF_FORMAT_TYPE

The full include-list for aos/logging/interface.cc:
"aos/logging/interface.h"
<algorithm>                      // for min
<cstdarg>                        // for va_list, va_end, va_copy, va_start
<cstdio>                         // for size_t, vsnprintf, stderr
<cstring>                        // for strlen, memcpy
<memory>                         // for shared_ptr, __shared_ptr_access
<ostream>                        // for operator<<, basic_ostream
<string>                         // for char_traits
<type_traits>                    // for common_type
"aos/die.h"                      // for VDie
"aos/logging/context.h"          // for Context
"aos/logging/implementations.h"  // for FillInMessage, PrintMessage, LogMessage
"aos/time/time.h"                // for monotonic_clock
"glog/logging.h"                 // for ErrnoLogMessage, PLOG

The full include-list for aos/logging/context.h:
<sys/types.h>  // for pid_t, size_t
<cinttypes>    // for uint16_t
<memory>       // for shared_ptr
<string_view>  // for string_view
namespace aos::logging { class LogImplementation; }  // lines 19-19

The full include-list for aos/logging/context.cc:
"aos/logging/context.h"
<sys/prctl.h>     // for prctl, PR_GET_NAME
<unistd.h>        // for getpid
<algorithm>       // for min
<cstddef>         // for size_t
<cstring>         // for strcpy, strncmp
<limits>          // for numeric_limits
<optional>        // for optional
<ostream>         // for operator<<, basic_ostream
<string>          // for char_traits, operator+, string, operator<<, basic_string
"glog/logging.h"  // for Check_LEImpl, CHECK_LE, ErrnoLogMessage, PLOG

The full include-list for aos/logging/implementations.h:
<sys/types.h>              // for pid_t
<cstdarg>                  // for va_list, va_end, va_start
<cstdint>                  // for int32_t, uint16_t
<cstdio>                   // for FILE, size_t
<cstring>                  // for strcmp
<functional>               // for function
<memory>                   // for shared_ptr
<string>                   // for string
<string_view>              // for string_view
<utility>                  // for move
"aos/logging/context.h"    // for Context, LOG_MESSAGE_LEN, LOG_MESSAGE_NAME_LEN
"aos/logging/interface.h"  // for LogImplementation
"aos/logging/logging.h"    // for log_level, DECL_LEVELS, ERROR, LOG_UNKNOWN
"aos/macros.h"             // for GOOD_PRINTF_FORMAT_TYPE
"aos/time/time.h"          // for monotonic_clock

The full include-list for aos/logging/implementations_test.cc:
"aos/logging/implementations.h"
<signal.h>                      // for SIGABRT
<stdlib.h>                      // for abort
<chrono>                        // for duration, duration_cast, operator-, nanoseconds, time_point, chrono
<cinttypes>                     // for PRId64, PRIu32
<string>                        // for string
"aos/logging/printf_formats.h"  // for AOS_TIME_ARGS, AOS_TIME_FORMAT, AOS_LOGGING_BASE_ARGS, AOS_LOGGING_BASE_FORMAT
"aos/time/time.h"               // for monotonic_clock
"glog/logging.h"                // for Check_EQImpl, CHECK_EQ
"gtest/gtest.h"                 // for AssertionResult, Message, TestPartResult, Test, TestInfo, AssertionFailure, ASSERT_EQ, EXPECT_EQ, AssertionSuccess, TEST_F, EXPECT_TRUE, DeathTest, CmpHelperGT, CmpHelperNE, EXPECT_FALSE, TEST, KilledBySignal, ASSERT_EXIT, ASSERT_GT, ASSERT_NE, EXPECT_DEATH

The full include-list for aos/logging/dynamic_logging.h:
<string>                                       // for string
"aos/events/event_loop.h"                      // for EventLoop
"aos/logging/dynamic_log_command_generated.h"  // for DynamicLogCommand
"aos/macros.h"                                 // for DISALLOW_COPY_AND_ASSIGN

The full include-list for aos/logging/dynamic_logging_test.cc:
"aos/logging/dynamic_logging.h"
<chrono>                             // for microseconds, operator+, chrono
<memory>                             // for unique_ptr
<ostream>                            // for operator<<
"aos/configuration.h"                // for ReadConfig, Configuration
"aos/events/event_loop.h"            // for EventLoop, TimerHandler, Sender, RawSender, Sender::MakeBuilder
"aos/events/simulated_event_loop.h"  // for SimulatedEventLoopFactory
"aos/flatbuffers.h"                  // for FlatbufferDetachedBuffer
"aos/testing/path.h"                 // for ArtifactPath
"flatbuffers/buffer.h"               // for AlignOf
"flatbuffers/flatbuffer_builder.h"   // for FlatBufferBuilder
"glog/logging.h"                     // for GetReferenceableValue, Check_EQImpl, CHECK_EQ, COMPACT_GOOGLE_LOG_INFO, LogMessage, VLOG
"gtest/gtest.h"                      // for CaptureStderr, GetCapturedStderr, CmpHelperNE, Message, TestPartResult, EXPECT_EQ, TestInfo, EXPECT_NE, TEST_F, Test

The full include-list for aos/logging/log_namer.cc:
"aos/logging/log_namer.h"
<dirent.h>         // for closedir, opendir, readdir, DIR, dirent
<mntent.h>         // for endmntent, getmntent_r, setmntent, mntent
<unistd.h>         // for access, readlink, sleep, symlink, unlink, F_OK, R_OK, W_OK
<cerrno>           // for errno, ENOENT, EROFS
<cstdio>           // for snprintf, asprintf, sscanf, FILE, size_t, ssize_t
<cstdlib>          // for free
<cstring>          // for strcmp
<ostream>          // for operator<<, basic_ostream
<string>           // for char_traits, allocator, operator+, string, operator<<, basic_string
"gflags/gflags.h"  // for DEFINE_string
"glog/logging.h"   // for LOG, LogMessage, COMPACT_GOOGLE_LOG_INFO, ErrnoLogMessage, PLOG, COMPACT_GOOGLE_LOG_FATAL, LogMessageFatal, COMPACT_GOOGLE_LOG_WARNING, VLOG

The full include-list for aos/logging/dynamic_logging.h:
<string>                                       // for string
"aos/events/event_loop.h"                      // for EventLoop
"aos/logging/dynamic_log_command_generated.h"  // for DynamicLogCommand
"aos/macros.h"                                 // for DISALLOW_COPY_AND_ASSIGN

The full include-list for aos/logging/dynamic_logging.cc:
"aos/logging/dynamic_logging.h"
<ostream>               // for operator<<
<string_view>           // for operator==
"flatbuffers/string.h"  // for String
"glog/logging.h"        // for FLAGS_v, COMPACT_GOOGLE_LOG_WARNING, LOG, LogMessage

The full include-list for aos/logging/implementations.h:
<sys/types.h>              // for pid_t
<cstdarg>                  // for va_list, va_end, va_start
<cstdint>                  // for int32_t, uint16_t
<cstdio>                   // for FILE, size_t
<cstring>                  // for strcmp
<functional>               // for function
<memory>                   // for shared_ptr
<string>                   // for string
<string_view>              // for string_view
<utility>                  // for move
"aos/logging/context.h"    // for Context, LOG_MESSAGE_LEN, LOG_MESSAGE_NAME_LEN
"aos/logging/interface.h"  // for LogImplementation
"aos/logging/logging.h"    // for log_level, DECL_LEVELS, ERROR, LOG_UNKNOWN
"aos/macros.h"             // for GOOD_PRINTF_FORMAT_TYPE
"aos/time/time.h"          // for monotonic_clock

The full include-list for aos/logging/implementations.cc:
"aos/logging/implementations.h"
<chrono>                        // for duration_cast, duration, operator-, seconds, chrono, nanoseconds
<cstdarg>                       // for va_list
"aos/logging/printf_formats.h"  // for AOS_LOGGING_BASE_ARGS, AOS_LOGGING_BASE_FORMAT
"aos/time/time.h"               // for monotonic_clock

Signed-off-by: Stephan Pleines <pleines.stephan@gmail.com>
Change-Id: I4dec9a61e27e1092d033edcec947742bae11d44a
diff --git a/aos/logging/implementations.h b/aos/logging/implementations.h
index 4e740f5..294750b 100644
--- a/aos/logging/implementations.h
+++ b/aos/logging/implementations.h
@@ -2,18 +2,13 @@
 #define AOS_LOGGING_IMPLEMENTATIONS_H_
 
 #include <sys/types.h>
-#include <unistd.h>
 
-#include <atomic>
-#include <climits>
-#include <cstdarg>
 #include <cstdint>
-#include <cstdio>
-#include <cstring>
 #include <functional>
 #include <memory>
 #include <string>
 #include <string_view>
+#include <utility>
 
 #include "aos/logging/context.h"
 #include "aos/logging/interface.h"