Skip to content

Commit

Permalink
Include iosfwd instead of iostream in headers (#37436)
Browse files Browse the repository at this point in the history
This is for optimizing build speed.

Signed-off-by: Takeshi Yoneda <[email protected]>
  • Loading branch information
mathetake authored Dec 2, 2024
1 parent 16ac26d commit 683c61f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion envoy/http/header_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <algorithm>
#include <cstdint>
#include <cstring>
#include <iostream>
#include <iosfwd>
#include <memory>
#include <string>
#include <type_traits>
Expand Down
2 changes: 1 addition & 1 deletion envoy/http/metadata_interface.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <functional>
#include <iostream>
#include <iosfwd>
#include <memory>
#include <sstream>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion source/common/quic/platform/quiche_logging_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <cerrno>
#include <cstring>
#include <iostream>
#include <iosfwd>
#include <sstream>
#include <string>

Expand Down
2 changes: 1 addition & 1 deletion source/common/quic/platform/quiche_mem_slice_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// porting layer for QUICHE.

#include <cstddef>
#include <iostream>
#include <iosfwd>
#include <memory>

#include "source/common/buffer/buffer_impl.h"
Expand Down
2 changes: 1 addition & 1 deletion source/common/quic/quic_io_handle_wrapper.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <chrono>
#include <iostream>
#include <iosfwd>

#include "envoy/network/io_handle.h"

Expand Down
2 changes: 1 addition & 1 deletion source/common/upstream/edf_scheduler.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include <cstdint>
#include <iostream>
#include <iosfwd>
#include <queue>

#include "envoy/upstream/scheduler.h"
Expand Down
2 changes: 1 addition & 1 deletion source/common/upstream/wrsq_scheduler.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <algorithm>
#include <iostream>
#include <iosfwd>
#include <memory>
#include <queue>
#include <utility>
Expand Down

0 comments on commit 683c61f

Please sign in to comment.