summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHContainerOperations.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2015-09-10 17:07:54 +0000
committerHans Wennborg <hans@hanshq.net>2015-09-10 17:07:54 +0000
commit7eb5464bc551dc7c3c1b3fe2ee618f6efd588b6f (patch)
tree531be698d6d9087bc68707750eda5115f1e5e7f1 /clang/lib/Frontend/PCHContainerOperations.cpp
parentfba81bc0767b428696ccdaf0dd590d4ed5537a18 (diff)
downloadbcm5719-llvm-7eb5464bc551dc7c3c1b3fe2ee618f6efd588b6f.tar.gz
bcm5719-llvm-7eb5464bc551dc7c3c1b3fe2ee618f6efd588b6f.zip
Re-commit r247218: "Fix Clang-tidy misc-use-override warnings, other minor fixes"
This never broke the build; it was the LLVM side, r247216, that caused problems. llvm-svn: 247302
Diffstat (limited to 'clang/lib/Frontend/PCHContainerOperations.cpp')
-rw-r--r--clang/lib/Frontend/PCHContainerOperations.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Frontend/PCHContainerOperations.cpp b/clang/lib/Frontend/PCHContainerOperations.cpp
index cde3ba139bc..5d73a86a00c 100644
--- a/clang/lib/Frontend/PCHContainerOperations.cpp
+++ b/clang/lib/Frontend/PCHContainerOperations.cpp
@@ -16,6 +16,7 @@
#include "llvm/Bitcode/BitstreamReader.h"
#include "llvm/Support/raw_ostream.h"
#include "clang/Lex/ModuleLoader.h"
+
using namespace clang;
namespace {
@@ -36,7 +37,7 @@ public:
std::shared_ptr<PCHBuffer> Buffer)
: Buffer(Buffer), OS(OS) {}
- virtual ~RawPCHContainerGenerator() {}
+ ~RawPCHContainerGenerator() override = default;
void HandleTranslationUnit(ASTContext &Ctx) override {
if (Buffer->IsComplete) {
@@ -49,7 +50,8 @@ public:
Buffer->Data = std::move(Empty);
}
};
-}
+
+} // anonymous namespace
std::unique_ptr<ASTConsumer> RawPCHContainerWriter::CreatePCHContainerGenerator(
DiagnosticsEngine &Diags, const HeaderSearchOptions &HSO,
OpenPOWER on IntegriCloud