From 01394fb9e4d4fcf401e98116c02866d64047008d Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 5 Mar 2014 07:52:44 +0000 Subject: [C++11] Add 'override' keyword to virtual methods that override their base class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202946 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/LineEditor/LineEditor.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/llvm/LineEditor/LineEditor.h') diff --git a/include/llvm/LineEditor/LineEditor.h b/include/llvm/LineEditor/LineEditor.h index cde57b8a92..9335e75a56 100644 --- a/include/llvm/LineEditor/LineEditor.h +++ b/include/llvm/LineEditor/LineEditor.h @@ -120,7 +120,7 @@ private: struct ListCompleterConcept : CompleterConcept { ~ListCompleterConcept(); - CompletionAction complete(StringRef Buffer, size_t Pos) const; + CompletionAction complete(StringRef Buffer, size_t Pos) const override; static std::string getCommonPrefix(const std::vector &Comps); virtual std::vector getCompletions(StringRef Buffer, size_t Pos) const = 0; @@ -129,7 +129,7 @@ private: template struct CompleterModel : CompleterConcept { CompleterModel(T Value) : Value(Value) {} - CompletionAction complete(StringRef Buffer, size_t Pos) const { + CompletionAction complete(StringRef Buffer, size_t Pos) const override { return Value(Buffer, Pos); } T Value; @@ -138,7 +138,8 @@ private: template struct ListCompleterModel : ListCompleterConcept { ListCompleterModel(T Value) : Value(Value) {} - std::vector getCompletions(StringRef Buffer, size_t Pos) const { + std::vector getCompletions(StringRef Buffer, + size_t Pos) const override { return Value(Buffer, Pos); } T Value; -- cgit v1.2.3