From 04fc58fb9e62b27655658b4ef793b3d5748d7dac Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 15 Mar 2014 07:47:46 +0000 Subject: [C++11] Add 'override' keyword to virtual methods that override their base class. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204002 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/arcmt-test/arcmt-test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/arcmt-test') diff --git a/tools/arcmt-test/arcmt-test.cpp b/tools/arcmt-test/arcmt-test.cpp index 518d06f2ad..28331c279b 100644 --- a/tools/arcmt-test/arcmt-test.cpp +++ b/tools/arcmt-test/arcmt-test.cpp @@ -83,17 +83,17 @@ public: PrintTransforms(raw_ostream &OS) : Ctx(0), OS(OS) { } - virtual void start(ASTContext &ctx) { Ctx = &ctx; } - virtual void finish() { Ctx = 0; } + void start(ASTContext &ctx) override { Ctx = &ctx; } + void finish() override { Ctx = 0; } - virtual void insert(SourceLocation loc, StringRef text) { + void insert(SourceLocation loc, StringRef text) override { assert(Ctx); OS << "Insert: "; printSourceLocation(loc, *Ctx, OS); OS << " \"" << text << "\"\n"; } - virtual void remove(CharSourceRange range) { + void remove(CharSourceRange range) override { assert(Ctx); OS << "Remove: "; printSourceRange(range, *Ctx, OS); -- cgit v1.2.3