diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-05 07:52:44 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-05 07:52:44 +0000 |
commit | 01394fb9e4d4fcf401e98116c02866d64047008d (patch) | |
tree | acffe20d43eeec66146b7bad4299786b2d2c39a2 /include/llvm/LineEditor/LineEditor.h | |
parent | c37e6c073436be77e90ef640c0e6627200ba19f7 (diff) | |
download | llvm-01394fb9e4d4fcf401e98116c02866d64047008d.tar.gz llvm-01394fb9e4d4fcf401e98116c02866d64047008d.tar.bz2 llvm-01394fb9e4d4fcf401e98116c02866d64047008d.tar.xz |
[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
Diffstat (limited to 'include/llvm/LineEditor/LineEditor.h')
-rw-r--r-- | include/llvm/LineEditor/LineEditor.h | 7 |
1 files changed, 4 insertions, 3 deletions
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<Completion> &Comps); virtual std::vector<Completion> getCompletions(StringRef Buffer, size_t Pos) const = 0; @@ -129,7 +129,7 @@ private: template <typename T> 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 <typename T> struct ListCompleterModel : ListCompleterConcept { ListCompleterModel(T Value) : Value(Value) {} - std::vector<Completion> getCompletions(StringRef Buffer, size_t Pos) const { + std::vector<Completion> getCompletions(StringRef Buffer, + size_t Pos) const override { return Value(Buffer, Pos); } T Value; |