summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2015-09-10 00:24:40 +0000
committerHans Wennborg <hans@hanshq.net>2015-09-10 00:24:40 +0000
commit91d4921dc44eef9b6a9279761e670f038c1b60bb (patch)
tree8021b4385ec336d3c01560025af5938ed0e49240 /lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parente9341ab11eeb35845181f2834e989bac39ec5d96 (diff)
downloadclang-91d4921dc44eef9b6a9279761e670f038c1b60bb.tar.gz
Fix Clang-tidy misc-use-override warnings, other minor fixes
Patch by Eugene Zelenko! Differential Revision: http://reviews.llvm.org/D12741 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
-rw-r--r--lib/CodeGen/ObjectFilePCHContainerOperations.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
index 54a3830869..a850c5ae39 100644
--- a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
+++ b/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
@@ -30,6 +30,7 @@
#include "llvm/Object/ObjectFile.h"
#include "llvm/Support/TargetRegistry.h"
#include <memory>
+
using namespace clang;
#define DEBUG_TYPE "pchcontainer"
@@ -139,7 +140,7 @@ public:
CodeGenOpts.SplitDwarfFile = OutputFileName;
}
- virtual ~PCHContainerGenerator() {}
+ ~PCHContainerGenerator() override = default;
void Initialize(ASTContext &Context) override {
assert(!Ctx && "initialized multiple times");
@@ -254,7 +255,7 @@ public:
}
};
-} // namespace
+} // anonymous namespace
std::unique_ptr<ASTConsumer>
ObjectFilePCHContainerWriter::CreatePCHContainerGenerator(
@@ -290,5 +291,4 @@ void ObjectFilePCHContainerReader::ExtractPCH(
// As a fallback, treat the buffer as a raw AST.
StreamFile.init((const unsigned char *)Buffer.getBufferStart(),
(const unsigned char *)Buffer.getBufferEnd());
- return;
}