[PATCH] D105402: [llvm][iwyu] explicitly includes <functional> and <utility>
Christopher Di Bella via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 3 19:24:37 PDT 2021
cjdb created this revision.
Herald added a subscriber: dexonsmith.
cjdb requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Compiling LLVM with Clang modules and libc++ identified that
`Support/Printable.h` and `ADL/SmallVector.h` were using features that
live in these headers.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D105402
Files:
llvm/include/llvm/ADT/SmallVector.h
llvm/include/llvm/Support/Printable.h
Index: llvm/include/llvm/Support/Printable.h
===================================================================
--- llvm/include/llvm/Support/Printable.h
+++ llvm/include/llvm/Support/Printable.h
@@ -14,6 +14,7 @@
#define LLVM_SUPPORT_PRINTABLE_H
#include <functional>
+#include <utility>
namespace llvm {
Index: llvm/include/llvm/ADT/SmallVector.h
===================================================================
--- llvm/include/llvm/ADT/SmallVector.h
+++ 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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105402.356359.patch
Type: text/x-patch
Size: 677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210704/3e83c4f8/attachment.bin>
More information about the llvm-commits
mailing list