diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-12 04:55:44 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-12 04:55:44 +0000 |
commit | e14c0f8e733e0ab0386b3c38c81fb9da2297de39 (patch) | |
tree | 1ba343ceefacd52db0e357c081d96ade9bd32608 /clang/lib/Sema/SemaDecl.cpp | |
parent | 407964238ffa987525f0f93abc8f11784edd4808 (diff) | |
download | bcm5719-llvm-e14c0f8e733e0ab0386b3c38c81fb9da2297de39.tar.gz bcm5719-llvm-e14c0f8e733e0ab0386b3c38c81fb9da2297de39.zip |
[C++11] Add 'override' keyword to virtual methods that override their base class.
llvm-svn: 203640
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 8e796e6be93..6419c7f584f 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -71,7 +71,7 @@ class TypeNameValidatorCCC : public CorrectionCandidateCallback { WantRemainingKeywords = false; } - virtual bool ValidateCandidate(const TypoCorrection &candidate) { + bool ValidateCandidate(const TypoCorrection &candidate) override { if (NamedDecl *ND = candidate.getCorrectionDecl()) { bool IsType = isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND); bool AllowedTemplate = AllowClassTemplates && isa<ClassTemplateDecl>(ND); @@ -5990,7 +5990,7 @@ class DifferentNameValidatorCCC : public CorrectionCandidateCallback { : Context(Context), OriginalFD(TypoFD), ExpectedParent(Parent ? Parent->getCanonicalDecl() : 0) {} - virtual bool ValidateCandidate(const TypoCorrection &candidate) { + bool ValidateCandidate(const TypoCorrection &candidate) override { if (candidate.getEditDistance() == 0) return false; |