summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/Module.cpp
diff options
context:
space:
mode:
authorEugene Zelenko <eugene.zelenko@gmail.com>2018-04-11 20:57:28 +0000
committerEugene Zelenko <eugene.zelenko@gmail.com>2018-04-11 20:57:28 +0000
commite69b33f232c96d3d5ec706e6426a16aa79f635d0 (patch)
tree35ee639313a4cc1e0c95e890bcf6b1ad68644b8b /clang/lib/Serialization/Module.cpp
parent0cba63c064ad1209d4089d65d57455257fe15299 (diff)
downloadbcm5719-llvm-e69b33f232c96d3d5ec706e6426a16aa79f635d0.tar.gz
bcm5719-llvm-e69b33f232c96d3d5ec706e6426a16aa79f635d0.zip
[Serialization] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 329851
Diffstat (limited to 'clang/lib/Serialization/Module.cpp')
-rw-r--r--clang/lib/Serialization/Module.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/clang/lib/Serialization/Module.cpp b/clang/lib/Serialization/Module.cpp
index 5a44d26fe39..f0ada809ad9 100644
--- a/clang/lib/Serialization/Module.cpp
+++ b/clang/lib/Serialization/Module.cpp
@@ -1,4 +1,4 @@
-//===--- Module.cpp - Module description ------------------------*- C++ -*-===//
+//===- Module.cpp - Module description ------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
@@ -11,8 +11,12 @@
// been loaded from an AST file.
//
//===----------------------------------------------------------------------===//
+
#include "clang/Serialization/Module.h"
#include "ASTReaderInternals.h"
+#include "clang/Serialization/ContinuousRangeMap.h"
+#include "llvm/ADT/StringRef.h"
+#include "llvm/Support/Compiler.h"
#include "llvm/Support/raw_ostream.h"
using namespace clang;
@@ -32,7 +36,8 @@ dumpLocalRemap(StringRef Name,
if (Map.begin() == Map.end())
return;
- typedef ContinuousRangeMap<Key, Offset, InitialCapacity> MapType;
+ using MapType = ContinuousRangeMap<Key, Offset, InitialCapacity>;
+
llvm::errs() << " " << Name << ":\n";
for (typename MapType::const_iterator I = Map.begin(), IEnd = Map.end();
I != IEnd; ++I) {
OpenPOWER on IntegriCloud