[llvm] 95923c0 - [llvm][iwyu] explicitly includes <functional> and <utility>
Christopher Di Bella via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 3 23:02:56 PDT 2021
Author: Christopher Di Bella
Date: 2021-07-04T06:02:11Z
New Revision: 95923c0ba245377205f783607aaacbf8c667b353
URL: https://github.com/llvm/llvm-project/commit/95923c0ba245377205f783607aaacbf8c667b353
DIFF: https://github.com/llvm/llvm-project/commit/95923c0ba245377205f783607aaacbf8c667b353.diff
LOG: [llvm][iwyu] explicitly includes <functional> and <utility>
Compiling LLVM with Clang modules and libc++ identified that
`Support/Printable.h` and `ADL/SmallVector.h` were using features that
live in these headers.
Differential Revision: https://reviews.llvm.org/D105402
Added:
Modified:
llvm/include/llvm/ADT/SmallVector.h
llvm/include/llvm/Support/Printable.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h
index 862c2353ff22c..b8a11030fc331 100644
--- a/llvm/include/llvm/ADT/SmallVector.h
+++ b/llvm/include/llvm/ADT/SmallVector.h
@@ -23,6 +23,7 @@
#include <cstddef>
#include <cstdlib>
#include <cstring>
+#include <functional>
#include <initializer_list>
#include <iterator>
#include <limits>
diff --git a/llvm/include/llvm/Support/Printable.h b/llvm/include/llvm/Support/Printable.h
index 0f8670d0419c7..6403c32aad673 100644
--- a/llvm/include/llvm/Support/Printable.h
+++ b/llvm/include/llvm/Support/Printable.h
@@ -14,6 +14,7 @@
#define LLVM_SUPPORT_PRINTABLE_H
#include <functional>
+#include <utility>
namespace llvm {
More information about the llvm-commits
mailing list