[PATCH] D22555: [Clang] Fix RHEL 6 build and other Include What You Use warnings
Eugene Zelenko via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 19 17:45:50 PDT 2016
Eugene.Zelenko created this revision.
Eugene.Zelenko added reviewers: hans, mehdi_amini.
Eugene.Zelenko added a subscriber: cfe-commits.
Eugene.Zelenko set the repository for this revision to rL LLVM.
Build was broken because of missing climits where PATH_MAX is defined.
Repository:
rL LLVM
https://reviews.llvm.org/D22555
Files:
lib/Basic/FileManager.cpp
Index: lib/Basic/FileManager.cpp
===================================================================
--- lib/Basic/FileManager.cpp
+++ lib/Basic/FileManager.cpp
@@ -26,7 +26,13 @@
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
+#include <algorithm>
+#include <cassert>
+#include <climits>
+#include <cstdint>
+#include <cstdlib>
#include <string>
+#include <utility>
using namespace clang;
@@ -494,7 +500,6 @@
UniqueRealFiles.erase(Entry->getUniqueID());
}
-
void FileManager::GetUniqueIDMapping(
SmallVectorImpl<const FileEntry *> &UIDToFiles) const {
UIDToFiles.clear();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22555.64620.patch
Type: text/x-patch
Size: 673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160720/1c9fd4a2/attachment.bin>
More information about the cfe-commits
mailing list