From 7e940c4725759f78e8ef9a964be21c4900ab2945 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 7 Feb 2015 08:12:22 +0000 Subject: [PATCH] Consistently use override rather than virtual. This fixes -Winconsistent-missing-override warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228489 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/DebugInfo/PDB/PDBApiTest.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/unittests/DebugInfo/PDB/PDBApiTest.cpp b/unittests/DebugInfo/PDB/PDBApiTest.cpp index c12e60ac1fd..87d4197776c 100644 --- a/unittests/DebugInfo/PDB/PDBApiTest.cpp +++ b/unittests/DebugInfo/PDB/PDBApiTest.cpp @@ -70,24 +70,24 @@ class MockRawSymbol : public IPDBRawSymbol { public: MockRawSymbol(PDB_SymType SymType) : Type(SymType) {} - virtual void dump(llvm::raw_ostream &OS) const {} + void dump(llvm::raw_ostream &OS) const override {} - virtual std::unique_ptr + std::unique_ptr findChildren(PDB_SymType Type, StringRef Name, - PDB_NameSearchFlags Flags) const { + PDB_NameSearchFlags Flags) const override { return nullptr; } - virtual std::unique_ptr + std::unique_ptr findChildrenByRVA(PDB_SymType Type, StringRef Name, PDB_NameSearchFlags Flags, - uint32_t RVA) const { + uint32_t RVA) const override { return nullptr; } - virtual std::unique_ptr - findInlineFramesByRVA(uint32_t RVA) const { + std::unique_ptr + findInlineFramesByRVA(uint32_t RVA) const override { return nullptr; } - virtual void getDataBytes(llvm::SmallVector &bytes) const {} + void getDataBytes(llvm::SmallVector &bytes) const override {} PDB_SymType getSymTag() const override { return Type; } -- 2.40.0