Skip to content

Commit 039e5ac

Browse files
committed
mpgen: iwyu changes required by previous commit
gen.cpp uses IWYU pragma: keep for include which appears to be necessary for newer versions of capnproto (1.4.0 but not 1.1.0)
1 parent 25bb3e6 commit 039e5ac

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/mp/gen.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <mp/util.h>
77

88
#include <algorithm>
9+
#include <capnp/schema.capnp.h> // IWYU pragma: keep
910
#include <capnp/schema.h>
1011
#include <capnp/schema-parser.h>
1112
#include <cerrno>
@@ -329,12 +330,15 @@ static void Generate(kj::StringPtr src_prefix,
329330
cpp_client << "#include <" << include_path << ".h>\n";
330331
cpp_client << "#include <" << include_path << ".proxy.h>\n";
331332
cpp_client << "#include <" << include_path << ".proxy-types.h>\n";
333+
cpp_client << "#include <capnp/capability.h>\n";
332334
cpp_client << "#include <capnp/generated-header-support.h>\n";
333335
cpp_client << "#include <cstring>\n";
334-
cpp_client << "#include <vector>\n";
336+
cpp_client << "#include <functional>\n";
335337
cpp_client << "#include <kj/common.h>\n";
338+
cpp_client << "#include <map>\n";
336339
cpp_client << "#include <mp/proxy.h>\n";
337340
cpp_client << "#include <mp/util.h>\n";
341+
cpp_client << "#include <vector>\n";
338342
cpp_client << "#include <" << PROXY_TYPES << ">\n";
339343
cpp_client << "// IWYU pragma: end_keep\n\n";
340344
cpp_client << "namespace mp {\n";
@@ -346,8 +350,6 @@ static void Generate(kj::StringPtr src_prefix,
346350
cpp_types << "#include <" << include_path << ".h> // IWYU pragma: keep\n";
347351
cpp_types << "#include <" << include_path << ".proxy.h>\n";
348352
cpp_types << "#include <" << include_path << ".proxy-types.h> // IWYU pragma: keep\n";
349-
cpp_types << "#include <kj/common.h>\n";
350-
cpp_types << "#include <mp/util.h>\n";
351353
cpp_types << "#include <" << PROXY_TYPES << ">\n\n";
352354
cpp_types << "namespace mp {\n";
353355

0 commit comments

Comments
 (0)