iwyu: //aos/flatbuffers/...

The full include-list for aos/flatbuffers/generate.cc:
<stdlib.h>                              // for EXIT_SUCCESS
"aos/flatbuffers.h"                     // for FlatbufferVector
"aos/flatbuffers/static_flatbuffers.h"  // for
GenerateCodeForRootTableFile
"aos/init.h"                            // for InitGoogle
"aos/json_to_flatbuffer.h"              // for FileToFlatbuffer
"aos/util/file.h"                       // for
WriteStringToFileOrDie
"flatbuffers/reflection_generated.h"    // for Schema
"gflags/gflags.h"                       // for DEFINE_string

The full include-list for aos/flatbuffers/base.h:
<stdint.h>            // for uint8_t
<sys/types.h>         // for ssize_t
<cstring>             // for size_t, memset
<memory>              // for unique_ptr
<optional>            // for optional
<ostream>             // for char_traits, operator<<,
basic_ostream, ostream
<span>                // for span, dynamic_extent
<utility>             // for move
<vector>              // for vector
"flatbuffers/base.h"  // for soffset_t, uoffset_t, voffset_t
"glog/logging.h"      // for CHECK, COMPACT_GOOGLE_LOG_FATAL,
LogMessageFatal, Check_EQImpl, CHECK_EQ, CHECK_LE
namespace aos::fbs { class Allocator; }  // lines 28-28

The full include-list for aos/flatbuffers/base.cc:
"aos/flatbuffers/base.h"
<string.h>  // for size_t, memset, memmove
<iomanip>   // for operator<<, setw, operator|, resetiosflags,
setfill, hex, ios_base, uppercase

The full include-list for aos/flatbuffers/static_flatbuffers.h:
<set>                                 // for set
<string>                              // for string
<string_view>                         // for string_view
"flatbuffers/reflection_generated.h"  // for Schema, Object

The full include-list for aos/flatbuffers/static_flatbuffers.cc:
"aos/flatbuffers/static_flatbuffers.h"
<stddef.h>                    // for size_t
<stdint.h>                    // for int64_t
<algorithm>                   // for max
<map>                         // for operator==, map,
_Rb_tree_const_iterator, _Rb_tree_iterator
<optional>                    // for optional, nullopt
<ostream>                     // for operator<<, basic_ostream
<utility>                     // for pair
<vector>                      // for vector
"absl/strings/numbers.h"      // for SimpleAtoi
"absl/strings/str_cat.h"      // for StrCat
"absl/strings/str_format.h"   // for StrFormat
"absl/strings/str_join.h"     // for StrJoin
"absl/strings/str_replace.h"  // for StrReplaceAll
"aos/flatbuffers/base.h"      // for PaddedSize, soffset_t
"aos/json_to_flatbuffer.h"    // for FlatbufferToJson
"flatbuffers/base.h"          // for soffset_t
"flatbuffers/string.h"        // for String
"flatbuffers/vector.h"        // for Vector, VectorIterator
"glog/logging.h"              // for COMPACT_GOOGLE_LOG_FATAL,
LogMessageFatal, Check_EQImpl, LOG, Check_LEImpl, CHECK,
CHECK_EQ, CHECK_LE, COMPACT_GOOGLE_LOG_INFO, LogMessage, VLOG

The full include-list for aos/flatbuffers/base.h:
<stdint.h>            // for uint8_t
<sys/types.h>         // for ssize_t
<cstring>             // for size_t, memset
<memory>              // for unique_ptr
<optional>            // for optional
<ostream>             // for char_traits, operator<<,
basic_ostream, ostream
<span>                // for span, dynamic_extent
<utility>             // for move
<vector>              // for vector
"flatbuffers/base.h"  // for soffset_t, uoffset_t, voffset_t
"glog/logging.h"      // for CHECK, COMPACT_GOOGLE_LOG_FATAL,
LogMessageFatal, Check_EQImpl, CHECK_EQ, CHECK_LE
namespace aos::fbs { class Allocator; }  // lines 28-28

The full include-list for aos/flatbuffers/base_test.cc:
"aos/flatbuffers/base.h"
<stddef.h>       // for size_t
<algorithm>      // for count
"gtest/gtest.h"  // for Message, TestPartResult, Test, EXPECT_EQ,
AssertionResult, TestInfo, ASSERT_EQ, TYPED_TEST, DeathTest,
TEST, TEST_F, ASSERT_TRUE, EXPECT_DEATH, EXPECT_FALSE,
TYPED_TEST_SUITE, Types

The full include-list for aos/flatbuffers/static_flatbuffers.h:
<set>                                 // for set
<string>                              // for string
<string_view>                         // for string_view
"flatbuffers/reflection_generated.h"  // for Schema, Object

The full include-list for
aos/flatbuffers/static_flatbuffers_test.cc:
"aos/flatbuffers/static_flatbuffers.h"
<stdint.h>
// for uint8_t
<string.h>
// for size_t, strnlen
<algorithm>
// for max, copy
<iostream>
// for operator<<, basic_ostream, cerr, stringstream
<iterator>
// for random_access_iterator
<memory>
// for make_unique, unique_ptr
<span>
// for span
<type_traits>
// for remove_reference
<utility>
// for move
<vector>
// for vector
"absl/strings/str_format.h"
// for StrFormat
"absl/strings/str_join.h"
// for StrJoin
"absl/types/span.h"
// for Span
"aos/flatbuffers.h"
// for FlatbufferSpan, FlatbufferDetachedBuffer,
NonSizePrefixedFlatbuffer
"aos/flatbuffers/base.h"
// for VectorAllocator, SpanAllocator, DebugBytes, uoffset_t,
Allocator, FixedStackAllocator
"aos/flatbuffers/builder.h"
// for Builder
"aos/flatbuffers/interesting_schemas.h"
// for UnsupportedSchema
"aos/flatbuffers/static_vector.h"
// for Vector, String
"aos/flatbuffers/test_dir/include_generated.h"
// for TestEnum, IncludedTable
"aos/flatbuffers/test_dir/include_reflection_static.h"
// for UseSchemaStatic
"aos/flatbuffers/test_dir/include_static.h"
// for IncludedTableStatic
"aos/flatbuffers/test_dir/type_coverage_generated.h"
// for Configuration, ConfigurationT
"aos/flatbuffers/test_dir/type_coverage_static.h"
// for ConfigurationStatic
"aos/flatbuffers/test_generated.h"
// for SubStruct, TestTable, SubTableT, SubTable, TestTableT
"aos/flatbuffers/test_schema.h"
// for TestTableSchema
"aos/flatbuffers/test_static.h"
// for TestTableStatic, SubTableStatic,
MinimallyAlignedTableStatic
"aos/json_to_flatbuffer.h"
// for FlatbufferToJson, JsonToStaticFlatbuffer,
WriteFlatbufferToFile
"aos/testing/path.h"
// for ArtifactPath
"aos/testing/tmpdir.h"
// for TestTmpDir
"aos/util/file.h"
// for ReadFileToStringOrDie
"external/com_github_google_flatbuffers/src/annotated_binary_text_gen.h"
// for AnnotatedBinaryTextGenerator
"external/com_github_google_flatbuffers/src/binary_annotator.h"
// for BinarySection, BinaryAnnotator
"flatbuffers/base.h"
// for uoffset_t
"flatbuffers/buffer.h"
// for Offset
"flatbuffers/flatbuffer_builder.h"
// for FlatBufferBuilder
"flatbuffers/stl_emulation.h"
// for span, unique_ptr
"flatbuffers/string.h"
// for String
"flatbuffers/vector.h"
// for Vector, VectorIterator
"glog/logging.h"
// for CheckNotNull, LogMessage, COMPACT_GOOGLE_LOG_INFO, VLOG,
CHECK, COMPACT_GOOGLE_LOG_FATAL, LogMessageFatal, CHECK_NOTNULL,
LOG, COMPACT_GOOGLE_LOG_ERROR
"gtest/gtest.h"
// for AssertionResult, Message, TestPartResult, EXPECT_EQ,
ASSERT_TRUE, TestInfo, ASSERT_FALSE, TEST_F, EXPECT_FALSE,
EXPECT_TRUE, ASSERT_EQ, DeathTest, EXPECT_DEATH,
CmpHelperFloatingPointEQ, CmpHelperLT, CmpHelperNE,
ASSERT_FLOAT_EQ, ASSERT_NE, EXPECT_LT, FAIL, Test

The full include-list for
aos/flatbuffers/static_flatbuffers_fuzz_test.cc:
<functional>                     // for function
<span>                           // for span
<string>                         // for allocator, operator+,
char_traits, basic_string
<string_view>                    // for basic_string_view,
string_view
<vector>                         // for vector
"absl/strings/str_join.h"        // for StrJoin
"aos/flatbuffers/builder.h"      // for Builder
"aos/flatbuffers/test_static.h"  // for TestTableStatic
"aos/json_to_flatbuffer.h"       // for FlatbufferToJson,
JsonToStaticFlatbuffer
"gtest/gtest.h"                  // for TestInfo, EXPECT_EQ,
Message, TEST_F, Test, TestPartResult

Signed-off-by: Stephan Pleines <pleines.stephan@gmail.com>
Change-Id: If87b05ffa91e536c25860816bb521465ef416e08
diff --git a/aos/flatbuffers/generate.cc b/aos/flatbuffers/generate.cc
index 030de35..9a2e5fd 100644
--- a/aos/flatbuffers/generate.cc
+++ b/aos/flatbuffers/generate.cc
@@ -1,4 +1,7 @@
+#include <stdlib.h>
+
 #include "flatbuffers/reflection_generated.h"
+#include "gflags/gflags.h"
 
 #include "aos/flatbuffers.h"
 #include "aos/flatbuffers/static_flatbuffers.h"