summaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExprObjC.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-03-12 04:55:44 +0000
committerCraig Topper <craig.topper@gmail.com>2014-03-12 04:55:44 +0000
commit34e9e13d3a6c448037bcd6e614dc7e8af5509f47 (patch)
treed7e74aaab43b6d59d2a96d566517c73b6018a4bd /lib/Sema/SemaExprObjC.cpp
parent5fcb4604496905e1b32a146e0af97d0627992463 (diff)
downloadclang-34e9e13d3a6c448037bcd6e614dc7e8af5509f47.tar.gz
clang-34e9e13d3a6c448037bcd6e614dc7e8af5509f47.tar.bz2
clang-34e9e13d3a6c448037bcd6e614dc7e8af5509f47.tar.xz
[C++11] Add 'override' keyword to virtual methods that override their base class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprObjC.cpp')
-rw-r--r--lib/Sema/SemaExprObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp
index 3a7e83c5ac..0d41d2ef81 100644
--- a/lib/Sema/SemaExprObjC.cpp
+++ b/lib/Sema/SemaExprObjC.cpp
@@ -1776,7 +1776,7 @@ class ObjCInterfaceOrSuperCCC : public CorrectionCandidateCallback {
WantObjCSuper = Method->getClassInterface()->getSuperClass();
}
- virtual bool ValidateCandidate(const TypoCorrection &candidate) {
+ bool ValidateCandidate(const TypoCorrection &candidate) override {
return candidate.getCorrectionDeclAs<ObjCInterfaceDecl>() ||
candidate.isKeyword("super");
}