From: Matt Beaumont-Gay Date: Wed, 11 Jan 2012 22:53:23 +0000 (+0000) Subject: Appease -Wnon-virtual-dtor X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b7254c2c31d385eba95fc4d31e87587ec31fd63;p=clang Appease -Wnon-virtual-dtor git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147977 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Sema/TypoCorrection.h b/include/clang/Sema/TypoCorrection.h index 0bb378be37..bcf5864977 100644 --- a/include/clang/Sema/TypoCorrection.h +++ b/include/clang/Sema/TypoCorrection.h @@ -145,6 +145,8 @@ class CorrectionCandidateCallback { WantObjCSuper(false), IsObjCIvarLookup(false) {} + virtual ~CorrectionCandidateCallback() {} + virtual bool ValidateCandidate(const TypoCorrection &candidate) { return true; }