Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit cd6a35d

Browse files
authored
IWYU: add some missing includes failing with libstdc++13/14 (#56822)
Fixes builds of engine with libstdc++13 and libstdc++14. *List which issues are fixed by this PR. You must list at least one issue.* closes flutter/flutter#159513 *If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].* [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
1 parent ba112ad commit cd6a35d

File tree

13 files changed

+14
-0
lines changed

13 files changed

+14
-0
lines changed

flow/paint_region.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef FLUTTER_FLOW_PAINT_REGION_H_
66
#define FLUTTER_FLOW_PAINT_REGION_H_
77

8+
#include <memory>
89
#include <utility>
910
#include <vector>
1011
#include "flutter/fml/logging.h"

fml/cpu_affinity.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "flutter/fml/cpu_affinity.h"
66
#include "flutter/fml/build_config.h"
77

8+
#include <cstdint>
89
#include <fstream>
910
#include <optional>
1011
#include <string>

fml/cpu_affinity.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef FLUTTER_FML_CPU_AFFINITY_H_
66
#define FLUTTER_FML_CPU_AFFINITY_H_
77

8+
#include <cstdint>
89
#include <optional>
910
#include <string>
1011
#include <vector>

fml/synchronization/sync_switch.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "flutter/fml/synchronization/sync_switch.h"
66

77
#include <algorithm>
8+
#include <mutex>
89

910
namespace fml {
1011

impeller/core/runtime_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#define FLUTTER_IMPELLER_CORE_RUNTIME_TYPES_H_
77

88
#include <cstddef>
9+
#include <cstdint>
910
#include <optional>
1011
#include <string>
1112
#include <vector>

impeller/geometry/path.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#define FLUTTER_IMPELLER_GEOMETRY_PATH_H_
77

88
#include <functional>
9+
#include <memory>
910
#include <optional>
1011
#include <tuple>
1112
#include <vector>

impeller/geometry/size.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <algorithm>
99
#include <cmath>
10+
#include <cstdint>
1011
#include <limits>
1112
#include <ostream>
1213
#include <string>

impeller/typographer/rectangle_packer.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "impeller/typographer/rectangle_packer.h"
66

77
#include <algorithm>
8+
#include <memory>
89
#include <vector>
910

1011
#include "flutter/fml/logging.h"

impeller/typographer/rectangle_packer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "impeller/geometry/scalar.h"
1010

1111
#include <cstdint>
12+
#include <memory>
1213

1314
namespace impeller {
1415

runtime/dart_service_isolate.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#define FLUTTER_RUNTIME_DART_SERVICE_ISOLATE_H_
77

88
#include <functional>
9+
#include <memory>
910
#include <mutex>
1011
#include <set>
1112
#include <string>

shell/platform/glfw/flutter_glfw.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <GLFW/glfw3.h>
88

99
#include <algorithm>
10+
#include <atomic>
1011
#include <cassert>
1112
#include <chrono>
1213
#include <cstdlib>

third_party/tonic/filesystem/filesystem/file.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef FILESYSTEM_FILE_H_
66
#define FILESYSTEM_FILE_H_
77

8+
#include <cstdint>
89
#include <string>
910
#include <vector>
1011

vulkan/vulkan_surface.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#ifndef FLUTTER_VULKAN_VULKAN_SURFACE_H_
66
#define FLUTTER_VULKAN_VULKAN_SURFACE_H_
77

8+
#include <memory>
9+
810
#include "flutter/fml/macros.h"
911
#include "flutter/vulkan/procs/vulkan_handle.h"
1012
#include "third_party/skia/include/core/SkSize.h"

0 commit comments

Comments
 (0)