diff options
author | Hans Wennborg <hans@hanshq.net> | 2015-09-10 00:24:40 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2015-09-10 00:24:40 +0000 |
commit | 60f3e1f466c9dfa834ab9e71ae4fe0589a42774f (patch) | |
tree | ff5497a3955ffa654477b6a91b4e593b60e56084 /clang/lib/Frontend/PCHContainerOperations.cpp | |
parent | 34d7a7493da92026aca5395f930cabd98354ef95 (diff) | |
download | bcm5719-llvm-60f3e1f466c9dfa834ab9e71ae4fe0589a42774f.tar.gz bcm5719-llvm-60f3e1f466c9dfa834ab9e71ae4fe0589a42774f.zip |
Fix Clang-tidy misc-use-override warnings, other minor fixes
Patch by Eugene Zelenko!
Differential Revision: http://reviews.llvm.org/D12741
llvm-svn: 247218
Diffstat (limited to 'clang/lib/Frontend/PCHContainerOperations.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHContainerOperations.cpp | 6 |
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, |