summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/FileUtilities.cpp
diff options
context:
space:
mode:
authorEugene Zelenko <eugene.zelenko@gmail.com>2016-08-23 17:14:32 +0000
committerEugene Zelenko <eugene.zelenko@gmail.com>2016-08-23 17:14:32 +0000
commit33d7b762d009f52000984804bbbe01ab02b30f66 (patch)
treef05d418140464705a578cfa505447c15569edd03 /llvm/lib/Support/FileUtilities.cpp
parentada2bb3d5d61d541ba5156ae76576b9e5ef45383 (diff)
downloadbcm5719-llvm-33d7b762d009f52000984804bbbe01ab02b30f66.tar.gz
bcm5719-llvm-33d7b762d009f52000984804bbbe01ab02b30f66.zip
Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes.
Differential revision: https://reviews.llvm.org/D23789 llvm-svn: 279535
Diffstat (limited to 'llvm/lib/Support/FileUtilities.cpp')
-rw-r--r--llvm/lib/Support/FileUtilities.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Support/FileUtilities.cpp b/llvm/lib/Support/FileUtilities.cpp
index c6a58cc9d03..39dbefff5b7 100644
--- a/llvm/lib/Support/FileUtilities.cpp
+++ b/llvm/lib/Support/FileUtilities.cpp
@@ -14,13 +14,17 @@
#include "llvm/Support/FileUtilities.h"
#include "llvm/ADT/SmallString.h"
+#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/MemoryBuffer.h"
-#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
#include <cctype>
+#include <cmath>
+#include <cstdint>
#include <cstdlib>
#include <cstring>
+#include <memory>
#include <system_error>
+
using namespace llvm;
static bool isSignedChar(char C) {
@@ -215,7 +219,7 @@ int llvm::DiffFilesWithTolerance(StringRef NameA,
}
bool CompareFailed = false;
- while (1) {
+ while (true) {
// Scan for the end of file or next difference.
while (F1P < File1End && F2P < File2End && *F1P == *F2P) {
++F1P;
OpenPOWER on IntegriCloud