summarylogtreecommitdiffstats
path: root/iwyu-add-stdint.h-for-various-int-types-in-base.patch
blob: 3c3e0d7f862b7b52e6592fe36078ceef3540d770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From afbe6c6ee713519263305d7e2d91cc9f1379afe2 Mon Sep 17 00:00:00 2001
From: Stephan Hartmann <stha09@googlemail.com>
Date: Mon, 3 Apr 2023 20:41:40 +0000
Subject: [PATCH] IWYU: add stdint.h for various int types in //base

Bug: 957519
Change-Id: I750de80f0d27d93ef3383052ddb4eefd5ee13abe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4394430
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Stephan Hartmann <stha09@googlemail.com>
Cr-Commit-Position: refs/heads/main@{#1125558}
---
 base/debug/profiler.h       | 1 +
 base/strings/string_piece.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/base/debug/profiler.h b/base/debug/profiler.h
index 5f0deadd5d3..035affc7c4d 100644
--- a/base/debug/profiler.h
+++ b/base/debug/profiler.h
@@ -6,6 +6,7 @@
 #define BASE_DEBUG_PROFILER_H_
 
 #include <stddef.h>
+#include <stdint.h>
 
 #include <string>
 
diff --git a/base/strings/string_piece.h b/base/strings/string_piece.h
index 899b654cbe8..9dde6ec29bb 100644
--- a/base/strings/string_piece.h
+++ b/base/strings/string_piece.h
@@ -22,6 +22,7 @@
 #define BASE_STRINGS_STRING_PIECE_H_
 
 #include <stddef.h>
+#include <stdint.h>
 
 #include <algorithm>
 #include <iosfwd>